aboutsummaryrefslogtreecommitdiff
path: root/rc.boot
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-05-16 11:53:02 +0300
committerCem Keylan <cem@ckyln.com>2020-05-16 11:53:02 +0300
commitb8b9c52a05f77b72a9ecfcf7d7759b61fa27bf80 (patch)
tree939e08b8913a77a33a87d52cdb55c071e4c4efe4 /rc.boot
parent5deb47cfbb7bcd994bb7295637dc5e85187ce1cb (diff)
downloadinit-b8b9c52a05f77b72a9ecfcf7d7759b61fa27bf80.tar.gz
init: multiple changes
- kill runit services only if sv is available on the system - add run_hook function - add early-boot hook
Diffstat (limited to 'rc.boot')
-rwxr-xr-xrc.boot10
1 files changed, 3 insertions, 7 deletions
diff --git a/rc.boot b/rc.boot
index b9e7e14..c02d4c2 100755
--- a/rc.boot
+++ b/rc.boot
@@ -71,7 +71,8 @@ out "Mounting all local filesystems..."; {
mount -at nosysfs,nonfs,nonfs4,nosmbfs,nocifs -O no_netdev ||
shell
}
-}
+
+run_hook early-boot
out "Enabling swap..."; {
swapon -a || shell
@@ -126,12 +127,7 @@ command -v udevd >/dev/null &&
udevadm control --exit
-out "Running boot hooks..."
-set +f
-for file in /etc/init/*.boot ; do
- [ -f "$file" ] && \
- out "Running $file" && . "$file"
-done
+run_hook boot
out "Running rc.local..."; {
[ -r "/etc/init/rc.local" ] && \