aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rc.lib3
1 files changed, 2 insertions, 1 deletions
diff --git a/rc.lib b/rc.lib
index 183f6a2..6ec5252 100644
--- a/rc.lib
+++ b/rc.lib
@@ -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"