From 132e49148b4808b3839757d4867e42be189199aa Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Wed, 16 Oct 2013 19:01:22 +0200 Subject: [PATCH] Loop until ubus connection succeeds --- src/config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.11.0