#!/bin/sh

set -e

case $1 in
	remove)
		# Remove the DKMS modules from the initramfs to allow for the upstream
		# kernel modules to be probed instead.
		if command -v update-initramfs >/dev/null && \
		   [ -e /etc/initramfs-tools/initramfs.conf ] ; then
			update-initramfs -u
		fi
		;;

	purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
		;;

	*)
		echo "postrm called with unknown argument \`${1}'" >&2
		exit 1
		;;
esac

#DEBHELPER#

exit 0
