blob: e27493dcbe7441c2ef3bba6820e8118a2018b51a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
# Copyright (C) 2008 Mario Limonciello
set -e
#DEBHELPER#
CVERSION=`dpkg-query -W -f='${Version}' virtualbox-ose-source | awk -F "-" '{print $1}' | cut -d\: -f2`
case "$1" in
remove|upgrade|purge)
echo "Removing all DKMS Modules"
dkms remove -m virtualbox-ose -v $CVERSION --all -q || true
#These are no longer used
dkms remove -m vboxdrv -v $CVERSION --all -q || true
dkms remove -m vboxnetflt -v $CVERSION --all -q || true
dkms remove -m vboxnetadp -v $CVERSION --all -q || true
echo "Done."
;;
esac
|