summaryrefslogtreecommitdiff
path: root/debian/postrm
blob: ed01ca47f841b09e67ebe39afbe1d09e79dad77c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh

NAME=applesmc
VERSION=0.15.2

set -e

case "$1" in
    purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
		moddir="/lib/modules/`uname -r`/kernel/"
      depmod
      if [ -d "/usr/src/$NAME-$VERSION" ]; then
         echo "Removing old module source..."
         rm -rf "/usr/src/$NAME-$VERSION"
      fi
    ;;

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

#DEBHELPER#

exit 0