X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=debian%2Fnfs-common.init;h=f90ee9a64467b2b7ba6b8592fd1bca2b9409ee9b;hp=76ceaca2819ff141590043761fae63c09d21b17a;hb=0f0b74e909a9f6a0dcaff48c4ad110c3ea450ef0;hpb=256ca818abf1b49274645eeae0cac6250bd58ea5;ds=sidebyside diff --git a/debian/nfs-common.init b/debian/nfs-common.init index 76ceaca..f90ee9a 100755 --- a/debian/nfs-common.init +++ b/debian/nfs-common.init @@ -113,6 +113,14 @@ do_mount() { return 0 } +do_umount() { + if mountpoint -q "$1" + then + umount "$1" + fi + return 0 +} + # See how we were called. case "$1" in start) @@ -180,6 +188,7 @@ case "$1" in printf " statd" start-stop-daemon --stop --oknodo --quiet \ --name rpc.statd + do_umount $PIPEFS_MOUNTPOINT echo "." ;;