diff options
author | Steven Barth <steven@midlink.org> | 2013-10-16 19:01:22 +0200 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2013-10-16 19:01:22 +0200 |
commit | 132e49148b4808b3839757d4867e42be189199aa (patch) | |
tree | bb828043f106f11a9b49e4c0d658cb5c6f3c132a /src | |
parent | 05969d06380387fc6d093e80b142145c2a9c2293 (diff) |
Loop until ubus connection succeeds
Diffstat (limited to 'src')
-rw-r--r-- | src/config.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/config.c b/src/config.c index 06e5407..f008c12 100644 --- a/src/config.c +++ b/src/config.c @@ -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(); |