diff options
author | Roy Marples <roy@marples.name> | 2008-01-11 12:13:46 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-01-11 12:13:46 +0000 |
commit | 3bf49a9bd19d5bbcf6976dd42b4f87f1b173e287 (patch) | |
tree | 8b4d6121f0d4b921566eeec2844c9bf76131de78 /sh/rc-mount.sh | |
parent | 1f4422c72f968405a0b8bf56d4f9c3b619b1b80d (diff) |
Adopt a more C style for scripts and remove vim settings.
Diffstat (limited to 'sh/rc-mount.sh')
-rw-r--r-- | sh/rc-mount.sh | 5 |
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 : |