]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - debian/nfs-common.prerm
Fix obsolete invocations of update-rc.d by switching nfs-common to use dh_installinit...
[nfs-utils.git] / debian / nfs-common.prerm
old mode 100755 (executable)
new mode 100644 (file)
index 77e3af8..c6d2a72
@@ -1,7 +1,14 @@
 #!/bin/sh
 
+set -e
+
 #DEBHELPER#
 
-[ -x /etc/init.d/nfs-common ] && /etc/init.d/nfs-common stop
+if [ "$1" != upgrade ]
+then
+    rm -f /var/lib/nfs/sm/*      \
+          /var/lib/nfs/sm.bak/*  \
+          /var/lib/nfs/state
+fi
 
 exit 0