summaryrefslogtreecommitdiffstats
path: root/shutdown
diff options
context:
space:
mode:
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