wait for kmod loader to complete on first boot
authorJohn Crispin <blogic@openwrt.org>
Wed, 4 Jun 2014 19:55:58 +0000 (20:55 +0100)
committerJohn Crispin <blogic@openwrt.org>
Thu, 5 Jun 2014 10:45:15 +0000 (11:45 +0100)
Signed-off-by: John Crispin <blogic@openwrt.org>
initd/init.c

index d458f29..7621b30 100644 (file)
@@ -107,6 +107,8 @@ main(int argc, char **argv)
        }
        if (pid <= 0)
                ERROR("Failed to start kmodloader instance\n");
        }
        if (pid <= 0)
                ERROR("Failed to start kmodloader instance\n");
+       else
+               waitpid(pid, NULL, 0);
        uloop_init();
        preinit();
        uloop_run();
        uloop_init();
        preinit();
        uloop_run();