blob: 412f98b90dfb1971bff3855f909993a9a01b9f38 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# rc.lib -- common functions for rc.boot and rc.shutdown
out() { printf '\033[1;36m-> \033[39m%s\033[m\n' "$@" ;}
err() { printf '\033[1;31m!> \033[39m%s\033[m\n' "$@" ;}
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
}
|