mirror of
https://github.com/troglobit/finit.git
synced 2026-10-13 10:14:47 +00:00
Drop mdevd plugin, not needed since notify:s6 support was added
For an example how to set it up, see the finit-skel repository: https://github.com/troglobit/finit-skel/blob/main/skel/etc/finit.d/available/mdevd.conf Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
+1
-17
@@ -39,21 +39,6 @@ static void setup(void *arg)
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* If the mdevd plugin is enabled and loaded we assume this
|
||||
* system is mdevd based, skipping below udev/mdev checks.
|
||||
*/
|
||||
if (plugin_find("mdevd")) {
|
||||
path = which("mdevd-coldplug");
|
||||
if (path) {
|
||||
snprintf(cmd, sizeof(cmd), "cgroup.system [S] <service/mdevd/ready> log %s "
|
||||
" -- Populating device tree", path);
|
||||
service_register(SVC_TYPE_RUN, cmd, global_rlimit, NULL);
|
||||
free(path);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* Populate /dev and prepare for runtime events from kernel.
|
||||
* Prefer udev if mdev is also available on the system.
|
||||
@@ -105,13 +90,12 @@ static void setup(void *arg)
|
||||
}
|
||||
}
|
||||
|
||||
/* mdevd optional, if installed & loaded changes behavior of setup() */
|
||||
static plugin_t plugin = {
|
||||
.name = __FILE__,
|
||||
.hook[HOOK_BASEFS_UP] = {
|
||||
.cb = setup
|
||||
},
|
||||
.depends = { "bootmisc", "mdevd", "modprobe" },
|
||||
.depends = { "bootmisc", "modprobe" },
|
||||
};
|
||||
|
||||
PLUGIN_INIT(plugin_init)
|
||||
|
||||
Reference in New Issue
Block a user