aboutsummaryrefslogtreecommitdiff
path: root/rc.shutdown
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-05-16 12:57:22 +0300
committerCem Keylan <cem@ckyln.com>2020-05-16 12:57:22 +0300
commit782f179d4c65afa531d5087fb541a45facfe0bee (patch)
tree2f9d9c547e4b6638494bf825fa36d97cc4a2d101 /rc.shutdown
parent621ab35b57f03de851d7cacb58b2df914d978547 (diff)
downloadinit-782f179d4c65afa531d5087fb541a45facfe0bee.tar.gz
rc.shutdown: use run_hook function
Diffstat (limited to 'rc.shutdown')
-rwxr-xr-xrc.shutdown6
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