From 23055b3d7da4bfef00d302e91b87fa36f6f9be96 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Fri, 7 Feb 2020 17:34:55 +0300 Subject: sinit: add changes * Use official sources * Switch to 1.0 * Remove the ubase dependency * Use kpow by Dylan Araps for shutdown --- core/sinit/files/sinit.post.shutdown | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'core/sinit/files/sinit.post.shutdown') 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 -- cgit v1.2.3