aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-05-30 15:47:54 +0000
committerRoy Marples <roy@marples.name>2007-05-30 15:47:54 +0000
commit1c1b0b0a4c1800e77caf531c11e2c11a88d69abf (patch)
treeaf1c647d94c74201635dc9c2d04d5b1d10b3b8c7 /sh
parente81ab8ecf83f877680280827eb049e6e7d88bebb (diff)
Don't use -f with mount
Diffstat (limited to 'sh')
-rw-r--r--sh/rc-mount.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/sh/rc-mount.sh b/sh/rc-mount.sh
index 9db2d323..7a2b2a51 100644
--- a/sh/rc-mount.sh
+++ b/sh/rc-mount.sh
@@ -52,14 +52,14 @@ do_unmount() {
# OK, try forcing things
if [ ${retry} -le 0 ] ; then
- local extra_opts="-f"
case "${cmd}" in
- mount*)
- # Silly reiserfs helper blocks us, so bypass it
- [ "${RC_UNAME}" = "Linux" ] && extra_opts="-i"
+ umount*)
+ LC_ALL=C ${cmd} ${extra_opts} "${mnt}" || retry=-999
+ ;;
+ *)
+ retry=-999
;;
esac
- ${cmd} ${extra_opts} "${mnt}" || retry=-999
break
fi
done