aboutsummaryrefslogtreecommitdiff
path: root/sh/rc-mount.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sh/rc-mount.sh')
-rw-r--r--sh/rc-mount.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/sh/rc-mount.sh b/sh/rc-mount.sh
index 946a5e70..5e791b7a 100644
--- a/sh/rc-mount.sh
+++ b/sh/rc-mount.sh
@@ -5,7 +5,8 @@
# mountinfo is a C program to actually find our mounts on our supported OS's
# We rely on fuser being preset, so if it's not then we don't unmount anything.
# This isn't a real issue for the BSD's, but it is for Linux.
-do_unmount() {
+do_unmount()
+{
type fuser >/dev/null 2>&1 || return 0
local cmd="$1" retval=0 retry=
@@ -73,5 +74,3 @@ do_unmount() {
done
return ${retval}
}
-
-# vim: set ts=4 :