29 lines
435 B
Bash
Executable File
29 lines
435 B
Bash
Executable File
#!/bin/sh
|
|
|
|
NAME=anbox-modules-dkms
|
|
VERSION=`dpkg-query -W -f='${Version}' $DEB_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
|
|
|
|
|