aboutsummaryrefslogtreecommitdiff
path: root/core/sinit/files/sinit.post.shutdown
diff options
context:
space:
mode:
Diffstat (limited to 'core/sinit/files/sinit.post.shutdown')
-rw-r--r--core/sinit/files/sinit.post.shutdown17
1 files changed, 1 insertions, 16 deletions
diff --git a/core/sinit/files/sinit.post.shutdown b/core/sinit/files/sinit.post.shutdown
index 4f3c793b..5ce4d8ec 100644
--- a/core/sinit/files/sinit.post.shutdown
+++ b/core/sinit/files/sinit.post.shutdown
@@ -1,16 +1 @@
-# vim:filetype=sh
-
-# We handle the shutdown from here
-
-if [ "$SINIT_SHUTDOWN_HOOKS" = 1 ]; then
- case "$1" in
- reboot)
- out "Requesting system reboot..."
- halt -r
- ;;
- *)
- out "Requesting system poweroff..."
- halt -p
- ;;
- esac
-fi
+case "$1" in reboot) kpow r ;; poweroff) kpow p ;; esac