aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrc.d/init.d/halt7
1 files changed, 4 insertions, 3 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt
index 2ebdbbe3..3ddaa73d 100755
--- a/rc.d/init.d/halt
+++ b/rc.d/init.d/halt
@@ -162,8 +162,11 @@ awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
fstab-decode $UMOUNT -f $line
done
+HALTARGS="-d"
+[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"
+
if [ -x /sbin/halt.local ]; then
- /sbin/halt.local
+ /sbin/halt.local "$message" "$command" "$HALTARGS" "$kexec_command"
fi
# Tell init to re-exec itself.
@@ -207,7 +210,5 @@ fi
# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null
-HALTARGS="-d"
-[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"
exec $command $HALTARGS