fix a race condition with dynamic interfaces and firewalling

SVN-Revision: 8343
v19.07.3_mercusys_ac12_duma
Felix Fietkau 17 years ago
parent b20b8d1523
commit 049dc2925b

@ -1,6 +1,3 @@
[ ifup = "$ACTION" ] && {
uci set "/var/state/network.$INTERFACE.up=1"
[ -z "$DEVICE" ] || {
uci set "/var/state/network.$INTERFACE.ifname=$DEVICE"
}
}

@ -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

Loading…
Cancel
Save