diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-04-05 02:35:29 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-04-05 02:35:29 +0200 |
commit | 3a9fe0cb9fa812bdecdf0a6f2d5e81877fe8cd1b (patch) | |
tree | 6fabea59608651bad03c8961f5b4cdc073b5a870 /config.c | |
parent | d6bcf552c169c1d0fd317f9654b8c81c3d838362 (diff) |
prevent autostart of interfaces during config init
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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(); } |