aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files
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
commit340bb8ff7a206006c9b21f875e238614caef7d22 (patch)
tree416e38cacb7adfab4fff52824ab5d6b8d7eee8b0 /package/base-files/files
parentd1883cc0d040cc33a567fbba1eb58c15afe2bb7a (diff)
downloadupstream-340bb8ff7a206006c9b21f875e238614caef7d22.tar.gz
upstream-340bb8ff7a206006c9b21f875e238614caef7d22.tar.bz2
upstream-340bb8ff7a206006c9b21f875e238614caef7d22.zip
[package] base-files: allow wireless ifaces to be part of multiple networks
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32503 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files')
-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
}
)}