aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.d/halt.sh.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.d/halt.sh.in b/init.d/halt.sh.in
index 9d2ce775..1a87c942 100644
--- a/init.d/halt.sh.in
+++ b/init.d/halt.sh.in
@@ -102,9 +102,9 @@ if [ "${RC_UNAME}" = "Linux" ]; then
do_unmount "mount -n -o remount,ro" \
--skip-point-regex "${no_umounts_r}" \
${fs:+--skip-fstype-regex} ${fs} --nonetdev
- eoutdent
- eend $?
unmounted=$?
+ eoutdent
+ eend ${unmounted}
fi
if [ ${unmounted} -ne 0 ]; then