From aa7e2cd1fe88b5d24f272764b2005681ea1ebebd Mon Sep 17 00:00:00 2001 From: Christian Ruppert Date: Sat, 18 Aug 2012 22:37:15 +0200 Subject: Use do_umount's return value instead of eoutdent's. --- init.d/mount-ro.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/init.d/mount-ro.in b/init.d/mount-ro.in index 881bf846..41b0b9ee 100644 --- a/init.d/mount-ro.in +++ b/init.d/mount-ro.in @@ -12,6 +12,8 @@ depend() start() { + local ret=0 + # Flush all pending disk writes now sync; sync @@ -39,6 +41,9 @@ start() do_unmount "umount -r" \ --skip-point-regex "$m" \ "${fs:+--skip-fstype-regex}" $fs --nonetdev + ret=$? + eoutdent - eend $? + + eend $ret } -- cgit v1.2.3