diff options
author | Cem Keylan <cem@ckyln.com> | 2024-03-04 17:07:10 +0100 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2024-03-04 17:20:25 +0100 |
commit | 6af10959fe35716fee32418dae8ea92bd8457ee6 (patch) | |
tree | 3b3290ec3b897bd6236875fbabdb79dc837d1e1a | |
parent | 41fb9de64c913293b59aa257aec6df4cf4c3206c (diff) | |
download | init-6af10959fe35716fee32418dae8ea92bd8457ee6.tar.gz |
-rw-r--r-- | rc.lib | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -138,7 +138,8 @@ random() { run_hook() { out "Running '$1' hooks..." - for hook in "/etc/init/"*".$1" "/usr/lib/init/hooks/"*".$1"; do + for hook in "/etc/init/"*".$1" "/usr/lib/init/hooks/"*".$1" \ + "/etc/init/$1/"* "/usr/lib/init/hooks/$1/"*; do [ -f "$hook" ] || continue out "Running '$hook'..." . "$hook" |