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 9d2ab89..f97a9ea 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();