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 d458f295cfef6da4457f251c78460cb61b918127..7621b3078913261bab03b488cb40a9b0ba08d96a 100644 (file)
@@ -107,6 +107,8 @@ main(int argc, char **argv)
        }
        if (pid <= 0)
                ERROR("Failed to start kmodloader instance\n");
+       else
+               waitpid(pid, NULL, 0);
        uloop_init();
        preinit();
        uloop_run();