aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/sbin
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-06-26 15:25:33 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-06-26 15:25:33 +0000
commitf2dde4f5ba51fed03823311f4638b5fc49bb2704 (patch)
tree6a646ddb02baad9cb7f568a76b408ac6d688b47c /package/base-files/files/sbin
parent21fce4eeaeee4c06cdeae7419fc7b1241dcea093 (diff)
downloadupstream-f2dde4f5ba51fed03823311f4638b5fc49bb2704.tar.gz
upstream-f2dde4f5ba51fed03823311f4638b5fc49bb2704.tar.bz2
upstream-f2dde4f5ba51fed03823311f4638b5fc49bb2704.zip
base-files: allow wireless ifaces to be part of multiple networks
SVN-Revision: 32503
Diffstat (limited to 'package/base-files/files/sbin')
-rwxr-xr-xpackage/base-files/files/sbin/wifi13
1 files changed, 9 insertions, 4 deletions
diff --git a/package/base-files/files/sbin/wifi b/package/base-files/files/sbin/wifi
index 8528efeed6..ef207878be 100755
--- a/package/base-files/files/sbin/wifi
+++ b/package/base-files/files/sbin/wifi
@@ -38,9 +38,12 @@ bridge_interface() {(
include /lib/network
scan_interfaces
- config_get iftype "$cfg" type
- [ "$iftype" = bridge ] && config_get "$cfg" ifname
- prepare_interface_bridge "$cfg"
+ for cfg in $cfg; do
+ config_get iftype "$cfg" type
+ [ "$iftype" = bridge ] && config_get "$cfg" ifname
+ prepare_interface_bridge "$cfg"
+ return $?
+ done
)}
prepare_key_wep() {
@@ -132,7 +135,9 @@ start_net() {(
[ -z "$config" ] || {
include /lib/network
scan_interfaces
- setup_interface "$iface" "$config" "" "$vifmac"
+ for config in $config; do
+ setup_interface "$iface" "$config" "" "$vifmac"
+ done
}
)}