From 40add56ce9c7e4e3c5d85daec9f31e7bc9942abe Mon Sep 17 00:00:00 2001 From: jow Date: Tue, 26 Jun 2012 15:25:33 +0000 Subject: [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 --- package/base-files/files/sbin/wifi | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'package/base-files/files/sbin/wifi') diff --git a/package/base-files/files/sbin/wifi b/package/base-files/files/sbin/wifi index 8528efeed..ef207878b 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 } )} -- cgit v1.2.3