aboutsummaryrefslogtreecommitdiff
path: root/core/sinit/files/sinit.post.shutdown
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-02-07 17:34:55 +0300
committerCem Keylan <cem@ckyln.com>2020-02-07 17:34:55 +0300
commit23055b3d7da4bfef00d302e91b87fa36f6f9be96 (patch)
tree27ccbaa55473bacd1d48c17de841584fb2c12fca /core/sinit/files/sinit.post.shutdown
parentc416432b8cc934b768a19242b976c159f07a22a5 (diff)
downloadrepository-23055b3d7da4bfef00d302e91b87fa36f6f9be96.tar.gz
sinit: add changes
* Use official sources * Switch to 1.0 * Remove the ubase dependency * Use kpow by Dylan Araps for shutdown
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