summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-06 03:28:04 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-06 03:28:04 +0200
commitd6ea48d146b4fa2905afa4acc2ff34b37ce5a623 (patch)
tree0ecd8b3936bcd7685b638879df041aa36ba9c16f
parent273eb40f725de67011c092d2ed9f07a2d7f84ac3 (diff)
delay bringup of interfaces until after the config reload
-rw-r--r--interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/interface.c b/interface.c
index 9454dc1..eb2f754 100644
--- a/interface.c
+++ b/interface.c
@@ -207,7 +207,7 @@ interface_do_reload(struct interface *iface)
interface_claim_device(iface);
proto_init_interface(iface, iface->config);
- if (iface->autostart)
+ if (iface->autostart && !config_init)
interface_set_up(iface);
}