X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=debian%2Fpostrm.in;fp=debian%2Fpostrm.in;h=46325a0d14586b615f7317905b2ba4ea3f840ad4;hb=74e64be8b45a7ff22f994552a95c797575dbe384;hp=0000000000000000000000000000000000000000;hpb=2ae34928adb5da51a66170a52678bb4a7d2d212a;p=cp210x.git diff --git a/debian/postrm.in b/debian/postrm.in new file mode 100755 index 0000000..46325a0 --- /dev/null +++ b/debian/postrm.in @@ -0,0 +1,26 @@ +#!/bin/sh + +PACKAGE=xxPACKAGExx +VERSION=xxDEBVERxx + +set -e + +case "$1" in + purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + depmod + if [ -d "/usr/src/$PACKAGE-$VERSION" ]; then + echo "Removing old module source..." + rm -rf "/usr/src/$PACKAGE-$VERSION" + fi + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 +