summaryrefslogtreecommitdiffstats
path: root/shutdown
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-01-14 22:46:32 +0100
committerDave Reisner <dreisner@archlinux.org>2012-01-28 21:38:50 +0100
commit02e846221ac41095b3c1bc01d24f46d004c7f106 (patch)
tree4db49780c073829554567a5a331d25e3037e9368 /shutdown
parent6eb8ee400d6914e223e69a45684b46ef29ef7cb0 (diff)
downloadmkinitcpio-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-xshutdown7
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