delay bringup of interfaces until after the config reload
authorFelix Fietkau <nbd@openwrt.org>
Thu, 6 Oct 2011 01:28:04 +0000 (03:28 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 6 Oct 2011 01:28:04 +0000 (03:28 +0200)
interface.c

index 9454dc1..eb2f754 100644 (file)
@@ -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);
 }