diff options
author | Cem Keylan <cem@ckyln.com> | 2020-05-16 12:57:22 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-05-16 12:57:22 +0300 |
commit | 782f179d4c65afa531d5087fb541a45facfe0bee (patch) | |
tree | 2f9d9c547e4b6638494bf825fa36d97cc4a2d101 | |
parent | 621ab35b57f03de851d7cacb58b2df914d978547 (diff) | |
download | init-782f179d4c65afa531d5087fb541a45facfe0bee.tar.gz |
rc.shutdown: use run_hook function
-rwxr-xr-x | rc.shutdown | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/rc.shutdown b/rc.shutdown index e2ea347..5727c76 100755 --- a/rc.shutdown +++ b/rc.shutdown @@ -49,10 +49,6 @@ out "Deactivating dmcrypt devices (if any exist)."; { } } -out "Running post shutdown hooks..."; -for file in /etc/init/*.post.shutdown ; do - [ -f "$file" ] && \ - out "Running $file" && . "$file" -done +run_hook post.shutdown case "$1" in reboot) shalt r ;; poweroff) shalt p ;; esac |