View file File name : prerm Content :#!/bin/sh NAME=MODULE_NAME VERSION=MODULE_VERSION 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