aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-05-23 02:27:11 +0300
committerCem Keylan <cem@ckyln.com>2020-05-23 02:27:11 +0300
commit067cc3d2ec25058b16702e88f50b23586f818731 (patch)
treeb7851a6177474b3332443765446e79b30cebf10e
parenta298ae2cbef1a79df67dff42a15e0b048504035f (diff)
downloadinit-067cc3d2ec25058b16702e88f50b23586f818731.tar.gz
rc.boot: use device_helper functions
-rwxr-xr-xrc.boot14
1 files changed, 5 insertions, 9 deletions
diff --git a/rc.boot b/rc.boot
index 0edc3d9..348f4fd 100755
--- a/rc.boot
+++ b/rc.boot
@@ -38,12 +38,8 @@ out "Parsing kernel commandline..."; {
dmesg -n$dmesg_level
}
-command -v udevd >/dev/null && {
- out "Starting eudev..."
- udevd --daemon
- udevadm trigger --action=add --type=subsystems
- udevadm trigger --action=add --type=devices
- udevadm settle
+out "Starting device manager..."; {
+ device_helper settle
}
out "Remounting rootfs as read-only..."; {
@@ -103,9 +99,9 @@ out "Loading sysctl settings..."; {
}
-command -v udevd >/dev/null &&
- udevadm control --exit
-
+out "Stopping device manager..."; {
+ device_helper exit
+}
run_hook boot