summaryrefslogtreecommitdiff
path: root/package/base-files/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-07-04 05:05:46 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-07-04 05:05:46 +0000
commit5b52ebfcb1878065f18c68edaa9a38a462ea2bdd (patch)
treebd8d439829d3d4d02f0fcdb27128dfb55e8e9251 /package/base-files/files
parent114b9a8fb6f2678ff3876cbba012ad5c5078ce8c (diff)
downloadmtk-20170518-5b52ebfcb1878065f18c68edaa9a38a462ea2bdd.zip
mtk-20170518-5b52ebfcb1878065f18c68edaa9a38a462ea2bdd.tar.gz
mtk-20170518-5b52ebfcb1878065f18c68edaa9a38a462ea2bdd.tar.bz2
fix a race condition with broadcom wl devices in a bridge if a device is added before the bridge is brought up, the wifi settings are lost
SVN-Revision: 7872
Diffstat (limited to 'package/base-files/files')
-rwxr-xr-xpackage/base-files/files/lib/network/config.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh
index 2c15b5e..c08fd69 100755
--- a/package/base-files/files/lib/network/config.sh
+++ b/package/base-files/files/lib/network/config.sh
@@ -98,6 +98,7 @@ prepare_interface() {
} || {
$DEBUG brctl addbr "br-$config"
$DEBUG brctl setfd "br-$config" 0
+ $DEBUG ifconfig "br-$config" up
$DEBUG brctl addif "br-$config" "$iface"
# Creating the bridge here will have triggered a hotplug event, which will
# result in another setup_interface() call, so we simply stop processing