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 9454dc1b1de9a525618b0d81bfc66d3eeb805b5f..eb2f754420f28f90c9b8c742279741e33b80ba61 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);
 }