From b321c6891e0be599ef70bc369422ba89a6701544 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 21 Nov 2007 15:41:45 +0000 Subject: The BSD's don't need to umount cleanly when shuttind down, as they have a special kernel service to handle this. As sch, don't error if we don't have fuser --- sh/rc-mount.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sh') 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 -- cgit v1.2.3