fix a race condition with dynamic interfaces and firewalling
SVN-Revision: 8343
This commit is contained in:
parent
b20b8d1523
commit
049dc2925b
2 changed files with 1 additions and 3 deletions
|
@ -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…
Reference in a new issue