From 782f179d4c65afa531d5087fb541a45facfe0bee Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Sat, 16 May 2020 12:57:22 +0300 Subject: rc.shutdown: use run_hook function --- rc.shutdown | 6 +----- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3