clevo-keyboard/deb/module-name/DEBIAN/prerm
Christoffer Sandberg c3d1773264
Update version to 2.0.2
Add tuxedo_keyboard.conf to packaging. Installs into
  /etc/modprobe.d/tuxedo_keyboard.conf

Add transitional package from tuxedo-keyboard-dkms to just
tuxedo-keyboard.
2020-04-15 17:52:40 +02:00

41 lines
828 B
Bash
Executable file

#!/bin/sh
module=module-name
version=x.x.x
set -e
case "$1" in
remove)
if [ "`dkms status -m $module`" ]
then
dkms remove -m $module -v $version --all
# Attempt to remove module, fail silently if module is already unloaded
rmmod -s $module > /dev/null 2>&1 || true
fi
rm -f /etc/modprobe.d/tuxedo_keyboard.conf || true
;;
upgrade|deconfigure)
if [ "`dkms status -m $module`" ]
then
dkms remove -m $module -v $version --all
# Attempt to remove module, fail silently if module is already unloaded
rmmod -s $module > /dev/null 2>&1 || true
fi
;;
failed-upgrade)
;;
*)
echo "prerm called with unknown argument \`$1'" >&2
exit 1
;;
esac
exit 0