X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=debian%2Fnfs-common.init;h=df5fca289018993800860d35a89e9a8c446dfcae;hp=76ceaca2819ff141590043761fae63c09d21b17a;hb=a844d5c56ef076c8961e7396b601e9a2bdeb546f;hpb=bc700ac52d47969d873499e3050d028335eda14d diff --git a/debian/nfs-common.init b/debian/nfs-common.init index 76ceaca..df5fca2 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 2>/dev/null || true echo "." ;;