From ce8eaba8581ebbb56242cc2ee73c72a928e59a99 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Tue, 24 Mar 2020 17:11:52 +0300 Subject: add simple halt utility --- rc.shutdown | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rc.shutdown') diff --git a/rc.shutdown b/rc.shutdown index a9ca570..848f114 100755 --- a/rc.shutdown +++ b/rc.shutdown @@ -53,3 +53,5 @@ for file in /etc/init/*.post.shutdown ; do [ -f "$file" ] && \ out "Running $file" && . "$file" done + +case "$1" in reboot) shalt r ;; poweroff) shalt p ;; esac -- cgit v1.2.3