summaryrefslogtreecommitdiffstats
path: root/debian/nfs-common.prerm
blob: b49a2b4d51ffac3e02364d88ffb4545286c1e8c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

#DEBHELPER#

case "$1" in
    remove|purge)
	[ -x /etc/init.d/nfs-common ] &&
	   /etc/init.d/nfs-common stop
	;;
esac

if [ "$1" != upgrade ]
then
    rm -f /var/lib/nfs/sm/*      \
          /var/lib/nfs/sm.bak/*  \
          /var/lib/nfs/state
fi

exit 0