X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=debian%2Fprerm.in;fp=debian%2Fprerm.in;h=59babc26de44f579730539819cacece69fb2f7a6;hb=74e64be8b45a7ff22f994552a95c797575dbe384;hp=0000000000000000000000000000000000000000;hpb=2ae34928adb5da51a66170a52678bb4a7d2d212a;p=cp210x.git diff --git a/debian/prerm.in b/debian/prerm.in new file mode 100755 index 0000000..59babc2 --- /dev/null +++ b/debian/prerm.in @@ -0,0 +1,29 @@ +#!/bin/sh + +PACKAGE=xxPACKAGExx +VERSION=xxDEBVERxx +MODULE=xxMODULExx + +set -e + +case "$1" in + remove|upgrade|deconfigure) + rmmod $ROOTNAME 2>/dev/null || true + if [ "`dkms status -m $PACKAGE`" ]; then + dkms remove -m $PACKAGE -v $VERSION --all + fi + ;; + + failed-upgrade) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 +