diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-01-14 22:46:32 +0100 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2012-01-28 21:38:50 +0100 |
commit | 02e846221ac41095b3c1bc01d24f46d004c7f106 (patch) | |
tree | 4db49780c073829554567a5a331d25e3037e9368 /shutdown | |
parent | 6eb8ee400d6914e223e69a45684b46ef29ef7cb0 (diff) | |
download | mkinitcpio-02e846221ac41095b3c1bc01d24f46d004c7f106.tar.gz mkinitcpio-02e846221ac41095b3c1bc01d24f46d004c7f106.tar.xz |
shutdown: make reboot the default action
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>
Diffstat (limited to 'shutdown')
-rwxr-xr-x | shutdown | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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 |