diff options
author | Cem Keylan <cem@ckyln.com> | 2020-05-16 11:53:02 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-05-16 11:53:02 +0300 |
commit | b8b9c52a05f77b72a9ecfcf7d7759b61fa27bf80 (patch) | |
tree | 939e08b8913a77a33a87d52cdb55c071e4c4efe4 /rc.boot | |
parent | 5deb47cfbb7bcd994bb7295637dc5e85187ce1cb (diff) | |
download | init-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-x | rc.boot | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -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" ] && \ |