summaryrefslogtreecommitdiffstats
path: root/package/base-files/files
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-07-04 05:05:46 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-07-04 05:05:46 +0000
commite84d52912732b2bfd82755f308a3e85532392b40 (patch)
tree8e3e94272eede341f37bb6fefa62fe591cdc3e92 /package/base-files/files
parentc49b0723e2aa7882aedc81ae213046f433fd4c20 (diff)
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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7872 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 2c15b5e23..c08fd69bc 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