%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/lib/dpkg/info/
Upload File :
Create Path :
Current File : /var/lib/dpkg/info/veeamsnap.postrm

#!/bin/sh

set -e

checkModule()
{
  if ! lsmod | grep "$1" > /dev/null
  then
    return 1
  fi
  return 0
}

case "$1" in

    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear|purge)

        if checkModule "veeamsnap"
        then
            rmmod veeamsnap || true
        fi
    ;;

    *)

        echo "prerm called with unknown argument \`$1'" >&2
        exit 1

    ;;

esac

exit 0


Zerion Mini Shell 1.0