summaryrefslogtreecommitdiffstats
path: root/initd
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-06-04 21:55:58 +0200
committerJohn Crispin <blogic@openwrt.org>2014-06-05 12:45:15 +0200
commit1dbd229aa7a9100b2793024d01385b91015cd700 (patch)
tree432bceee2f47b8ccd6011e306faddcec681fa6bc /initd
parent1fd4e60e9d03c0e3aa79f5f0bac87f07c63081f5 (diff)
downloadunitd-1dbd229aa7a9100b2793024d01385b91015cd700.tar
unitd-1dbd229aa7a9100b2793024d01385b91015cd700.zip
wait for kmod loader to complete on first boot
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'initd')
-rw-r--r--initd/init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/initd/init.c b/initd/init.c
index d458f29..7621b30 100644
--- a/initd/init.c
+++ b/initd/init.c
@@ -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();