load modules from /etc/modules-boot.d/ before preinit
authorJohn Crispin <blogic@openwrt.org>
Tue, 4 Jun 2013 09:46:00 +0000 (11:46 +0200)
committerJohn Crispin <blogic@openwrt.org>
Tue, 4 Jun 2013 14:17:01 +0000 (16:17 +0200)
Signed-off-by: John Crispin <blogic@openwrt.org>
main.c

diff --git a/main.c b/main.c
index 9d2ab894629b0b7cf5ff0237ba13bac9a7dbf386..f97a9eaedbfb1bf6009ffdeb4f0f6f638f037b0b 100644 (file)
--- a/main.c
+++ b/main.c
@@ -40,6 +40,7 @@ static int main_procd_init(int argc, char **argv)
        procd_early();
        debug_init();
        watchdog_init();
+       system("/sbin/kmodloader /etc/modules-boot.d/");
        uloop_init();
        hotplug("/etc/hotplug-preinit.json");
        procd_preinit();