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.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/sh/rc-mount.sh b/sh/rc-mount.sh
index a5e4570a..2f85cbf0 100644
--- a/sh/rc-mount.sh
+++ b/sh/rc-mount.sh
@@ -25,7 +25,11 @@
# Handy function to handle all our unmounting needs
# 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() {
+ type fuser >/dev/null 2>&1 || return 0
+
local cmd="$1" retval=0 retry=
local f_opts="-m -c" f_kill="-s " mnt=
if [ "${RC_UNAME}" = "Linux" ] ; then