summaryrefslogtreecommitdiff
path: root/debian/postrm
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2011-04-06 22:39:12 +0200
committerHenrik Rydberg <rydberg@euromail.se>2011-04-06 22:39:12 +0200
commitf85ef93bb342001adecd9fe33bb7182f608390b1 (patch)
treee43aaefeb9d01fc01ccfbb4cfe2f6f93ab764d78 /debian/postrm
Initial version of hid-multitouch-dkms packagev1.0.0
This is identical to jikos multitouch tree from 06APR2011. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'debian/postrm')
-rw-r--r--debian/postrm27
1 files changed, 27 insertions, 0 deletions
diff --git a/debian/postrm b/debian/postrm
new file mode 100644
index 0000000..7cedf1f
--- /dev/null
+++ b/debian/postrm
@@ -0,0 +1,27 @@
1#!/bin/sh
2
3NAME=hid-multitouch
4VERSION=1.0.0
5
6set -e
7
8case "$1" in
9 purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
10 moddir="/lib/modules/`uname -r`/kernel/"
11 depmod
12 if [ -d "/usr/src/$NAME-$VERSION" ]; then
13 echo "Removing old module source..."
14 rm -rf "/usr/src/$NAME-$VERSION"
15 fi
16 ;;
17
18 *)
19 echo "postrm called with unknown argument \`$1'" >&2
20 exit 1
21 ;;
22esac
23
24#DEBHELPER#
25
26exit 0
27