summaryrefslogtreecommitdiffstats
path: root/debian/scripts/prerm-dkms
blob: 6e93a1be0fd4ab0190bdece9086c75e6e0c2deb9 (plain)
1
2
3
4
5
6
7
8
9
10
DKMS_NAME=#MODULE_NAME#
DKMS_VERSION=#MODULE_VERSION#

case "$1" in
    remove|upgrade|deconfigure)
      if [  "$(dkms status -m $DKMS_NAME -v $DKMS_VERSION)" ]; then
         dkms remove -m $DKMS_NAME -v $DKMS_VERSION --all
      fi
    ;;
esac