aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-05-16 19:23:30 +0300
committerCem Keylan <cem@ckyln.com>2020-05-16 19:23:30 +0300
commit8ba323f055f31c10a1c11d78065700b11a55aae4 (patch)
tree06558e72b56e17ce2985f7cca1380812901e5c08
parentee593c6930c0b4833880cea309c73437107afe03 (diff)
downloadinit-8ba323f055f31c10a1c11d78065700b11a55aae4.tar.gz
init: allow installing hooks to lib directory
-rw-r--r--rc.lib2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.lib b/rc.lib
index f21fc61..e0ee61f 100644
--- a/rc.lib
+++ b/rc.lib
@@ -13,7 +13,7 @@ shell() {
run_hook() {
out "Running '$1' hooks..."
- for hook in "/etc/init/"*".$1"; do
+ for hook in "/etc/init/"*".$1" "/usr/lib/init/hooks/"*".$1"; do
[ -f "$hook" ] || continue
out "Running '$hook'..."
. "$hook"