diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2013-03-30 17:35:18 +0200 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2013-03-30 17:35:18 +0200 |
commit | 17c2f0dc0ca55e254fcd7829489757568b3225e7 (patch) | |
tree | 25b11e1b39d626151123a16f16f4b4ca38761609 /debian/gator-module-dkms.prerm |
Imported Upstream version 5.13.0HEADupstream/5.13.0master
Diffstat (limited to 'debian/gator-module-dkms.prerm')
-rwxr-xr-x | debian/gator-module-dkms.prerm | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/debian/gator-module-dkms.prerm b/debian/gator-module-dkms.prerm new file mode 100755 index 0000000..cf0b5f9 --- /dev/null +++ b/debian/gator-module-dkms.prerm @@ -0,0 +1,29 @@ +#!/bin/sh + +NAME=gator-module +PACKAGE_NAME=$NAME-dkms +VERSION=`dpkg-query -W -f='${Version}' $PACKAGE_NAME | awk -F "-" '{print $1}' | cut -d\: -f2` + +set -e + +case "$1" in + remove|upgrade|deconfigure) + if [ "`dkms status -m $NAME`" ]; then + dkms remove -m $NAME -v $VERSION --all + fi + ;; + + failed-upgrade) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 + + |