diff options
Diffstat (limited to 'rc.lib')
-rw-r--r-- | rc.lib | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -8,3 +8,12 @@ shell() { error "Dropping to shell, type 'exit' to continue the boot process." sh -l } + +run_hook() { + out "Running '$1' hooks..." + for hook in "/etc/init/"*".$1"; do + [ -f "$hook" ] || continue + out "Running '$hook'..." + . "$hook" + done +} |