fix a race condition with dynamic interfaces and firewalling

SVN-Revision: 8343
master
Felix Fietkau 18 years ago
parent b20b8d1523
commit 049dc2925b
  1. 3
      package/base-files/files/etc/hotplug.d/iface/00-netstate
  2. 1
      package/base-files/files/lib/network/config.sh

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