diff options
-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" |