diff options
author | Cem Keylan <cem@ckyln.com> | 2020-03-24 17:11:52 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-03-24 17:11:52 +0300 |
commit | ce8eaba8581ebbb56242cc2ee73c72a928e59a99 (patch) | |
tree | 0a1852fae97e02c4b21eb4c00fe4d4ac4809070f /rc.shutdown | |
parent | 2c4040656293a1e969bb01216ef2b3d5c26f225c (diff) | |
download | init-ce8eaba8581ebbb56242cc2ee73c72a928e59a99.tar.gz |
add simple halt utility0.7.0
Diffstat (limited to 'rc.shutdown')
-rwxr-xr-x | rc.shutdown | 2 |
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 |