mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 05:22:48 +07:00
Run udev triggers to add subsystems and devices
Without trigger, kernel modules won't be loaded automatically. Also devices are not managed. For example, i915 was not loaded after boot and my network card was not renamed from wlan0 to wlp3s0, which means it was not handled properly by udev. Signed-off-by: Wang He <xw897002528@gmail.com> Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
@@ -325,7 +325,12 @@ int main(int argc, char* argv[])
|
||||
else
|
||||
devfsd = "/lib/systemd/systemd-udevd --daemon";
|
||||
}
|
||||
|
||||
run_interactive(devfsd, "Populating device tree");
|
||||
if (fexist("/sbin/udevadm")) {
|
||||
run_interactive("/sbin/udevadm trigger --action=add --type=subsystems", "Trigger subsystems");
|
||||
run_interactive("/sbin/udevadm trigger --action=add --type=devices", "Trigger devices");
|
||||
}
|
||||
|
||||
/*
|
||||
* Load plugins first, finit.conf may contain references to
|
||||
|
||||
Reference in New Issue
Block a user