mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 05:38:00 +00:00
fix a race condition with dynamic interfaces and firewalling
SVN-Revision: 8343
This commit is contained in:
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…
Reference in New Issue
Block a user