Skip to content
Snippets Groups Projects
Commit 049dc292 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

fix a race condition with dynamic interfaces and firewalling

SVN-Revision: 8343
parent b20b8d15
No related branches found
No related tags found
No related merge requests found
[ 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment