Some OS's block on umount -f, so don't use it.
This commit is contained in:
parent
fe90a548b5
commit
eca292e5d9
@ -54,22 +54,9 @@ do_unmount()
|
|||||||
retry=$((${retry} - 1))
|
retry=$((${retry} - 1))
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
[ ${retry} -le 0 ] && break
|
||||||
# OK, try forcing things
|
|
||||||
if [ ${retry} -le 0 ]; then
|
|
||||||
case "${cmd}" in
|
|
||||||
umount*)
|
|
||||||
LC_ALL=C ${cmd} -f "${mnt}" \
|
|
||||||
|| retry=-999
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
retry=-999
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
if [ ${retry} -eq -999 ]; then
|
if [ ${retry} -le 0 ]; then
|
||||||
eend 1
|
eend 1
|
||||||
retval=1
|
retval=1
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user