28 Jan
2012
28 Jan
'12
8:39 p.m.
systemd passes 'kexec' on 'systemctl kexec' which isn't being caught. Catch the few possible verbs for a halt, and let everything else default to trying a kexec; falling back on a reboot. Signed-off-by: Dave Reisner <dreisner@archlinux.org> --- shutdown | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/shutdown b/shutdown index 100f505..39bcb97 100755 --- a/shutdown +++ b/shutdown @@ -16,14 +16,11 @@ END { done case $1 in - reboot) - type kexec >/dev/null && kexec -e - reboot -f - ;; poweroff|shutdown|halt) "$1" -f ;; *) - poweroff -f + type kexec >/dev/null && kexec -e + reboot -f ;; esac -- 1.7.8.4