Merge branch 'upstream'
[nfs-utils.git] / debian / nfs-common.prerm
1 #!/bin/sh
2
3 #DEBHELPER#
4
5 case "$1" in
6     remove|purge)
7         [ -x /etc/init.d/nfs-common ] &&
8             invoke-rc.d nfs-common stop
9         ;;
10 esac
11
12 if [ "$1" != upgrade ]
13 then
14     rm -f /var/lib/nfs/sm/*      \
15           /var/lib/nfs/sm.bak/*  \
16           /var/lib/nfs/state
17 fi
18
19 exit 0