diff options
Diffstat (limited to '')
-rw-r--r-- | debian/nfs-kernel-server.postrm | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/nfs-kernel-server.postrm b/debian/nfs-kernel-server.postrm new file mode 100644 index 0000000..6a4b07d --- /dev/null +++ b/debian/nfs-kernel-server.postrm @@ -0,0 +1,26 @@ +#!/bin/sh + +set -e + +#DEBHELPER# + +case "$1" in + purge) + update-rc.d nfs-kernel-server remove >/dev/null + + for FILE in /etc/default/nfs-kernel-server /etc/exports; do + # Taken from the ucf example postrm + for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist; do + rm -f $FILE$ext + done + rm -f $FILE + if [ -x /usr/bin/ucf ]; then + ucf --purge $FILE + fi + done + + rm -f /var/lib/nfs/etab \ + /var/lib/nfs/rmtab + ;; +esac + |