chsmack: add dereference option
[framework/security/smack.git] / debian / libsmack1.postrm
1 #!/bin/sh
2 # postrm script for libsmack1
3 #
4 # see: dh_installdeb(1)
5
6 set -e
7
8 case "$1" in
9     purge|abort-install|remove|upgrade|failed-upgrade|abort-upgrade|disappear)
10         if [ -d /smack ] ; then
11             if mountpoint -q "/smack" ; then
12                 umount /smack
13             fi 
14             rm -rf /smack
15         fi
16         ;;
17     *)
18         echo "postrm called with unknown argument \`$1'" >&2
19         exit 1
20         ;;
21 esac
22
23 # dh_installdeb will replace this with shell code automatically
24 # generated by other debhelper scripts.
25
26 #DEBHELPER#
27
28 exit 0