fix a race condition with dynamic interfaces and firewalling

SVN-Revision: 8343
This commit is contained in:
Felix Fietkau 2007-08-04 13:26:41 +00:00
parent b20b8d1523
commit 049dc2925b
2 changed files with 1 additions and 3 deletions

View File

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

View File

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