summaryrefslogtreecommitdiffhomepage
path: root/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'config.c')
-rw-r--r--config.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/config.c b/config.c
index 66cee84..51e355c 100644
--- a/config.c
+++ b/config.c
@@ -6,6 +6,7 @@
#include "interface.h"
struct uci_context *uci_ctx;
+bool config_init = false;
static void config_parse_interface(struct uci_section *s)
{
@@ -40,6 +41,7 @@ void config_init_interfaces(const char *name)
return;
}
+ config_init = true;
uci_foreach_element(&p->sections, e) {
struct uci_section *s = uci_to_section(e);
@@ -49,4 +51,7 @@ void config_init_interfaces(const char *name)
if (!strcmp(s->type, "interface"))
config_parse_interface(s);
}
+ config_init = false;
+
+ start_pending_interfaces();
}