Loop until ubus connection succeeds
authorSteven Barth <steven@midlink.org>
Wed, 16 Oct 2013 17:01:22 +0000 (19:01 +0200)
committerSteven Barth <steven@midlink.org>
Wed, 16 Oct 2013 17:01:22 +0000 (19:01 +0200)
src/config.c

index 06e5407..f008c12 100644 (file)
@@ -612,7 +612,8 @@ void odhcpd_run(void)
        signal(SIGHUP, handle_signal);
 
 #ifdef WITH_UBUS
-       init_ubus();
+       while (init_ubus())
+               sleep(1);
 #endif
 
        odhcpd_reload();