aboutsummaryrefslogtreecommitdiff
path: root/rc.shutdown
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-03-24 17:11:52 +0300
committerCem Keylan <cem@ckyln.com>2020-03-24 17:11:52 +0300
commitce8eaba8581ebbb56242cc2ee73c72a928e59a99 (patch)
tree0a1852fae97e02c4b21eb4c00fe4d4ac4809070f /rc.shutdown
parent2c4040656293a1e969bb01216ef2b3d5c26f225c (diff)
downloadinit-0.7.0.tar.gz
add simple halt utility0.7.0
Diffstat (limited to 'rc.shutdown')
-rwxr-xr-xrc.shutdown2
1 files changed, 2 insertions, 0 deletions
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