Use do_umount's return value instead of eoutdent's.
This commit is contained in:
parent
07e848638c
commit
aa7e2cd1fe
@ -12,6 +12,8 @@ depend()
|
|||||||
|
|
||||||
start()
|
start()
|
||||||
{
|
{
|
||||||
|
local ret=0
|
||||||
|
|
||||||
# Flush all pending disk writes now
|
# Flush all pending disk writes now
|
||||||
sync; sync
|
sync; sync
|
||||||
|
|
||||||
@ -39,6 +41,9 @@ start()
|
|||||||
do_unmount "umount -r" \
|
do_unmount "umount -r" \
|
||||||
--skip-point-regex "$m" \
|
--skip-point-regex "$m" \
|
||||||
"${fs:+--skip-fstype-regex}" $fs --nonetdev
|
"${fs:+--skip-fstype-regex}" $fs --nonetdev
|
||||||
|
ret=$?
|
||||||
|
|
||||||
eoutdent
|
eoutdent
|
||||||
eend $?
|
|
||||||
|
eend $ret
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user