[arch-projects] [mkinitcpio][PATCH 03/10] shutdown: make reboot the default action
Dave Reisner
d at falconindy.com
Sat Jan 28 15:39:39 EST 2012
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 at 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
More information about the arch-projects
mailing list