#!/bin/sh

export DKMS_NAME=saa716x
export DKMS_VERSION=1.0

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

    failed-upgrade|deconfigure)
    ;;

    *)
	echo "prerm called with unknown argument '$1'" >&2
	exit 1
    ;;
esac

exit 0
