fix a race condition with dynamic interfaces and firewalling
[openwrt/openwrt.git] / package / base-files / files / lib / network / config.sh
index c384b3e..3ff65ff 100755 (executable)
@@ -137,6 +137,7 @@ setup_interface() {
        config_get mtu "$config" mtu
        config_get macaddr "$config" macaddr
        $DEBUG ifconfig "$iface" ${macaddr:+hw ether "$macaddr"} ${mtu:+mtu $mtu} up
+       uci set "/var/state/network.$config.ifname=$iface"
 
        pidfile="/var/run/$iface.pid"
        case "$proto" in