summaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-06-26 15:25:33 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-06-26 15:25:33 +0000
commit40add56ce9c7e4e3c5d85daec9f31e7bc9942abe (patch)
tree416e38cacb7adfab4fff52824ab5d6b8d7eee8b0 /package/base-files
parent75f167e6de77d66546228de4b714cae59250975e (diff)
[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')
-rw-r--r--package/base-files/Makefile2
-rwxr-xr-xpackage/base-files/files/sbin/wifi13
2 files changed, 10 insertions, 5 deletions
diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index 2759e43a5..67e17111c 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -11,7 +11,7 @@ include $(INCLUDE_DIR)/kernel.mk
include $(INCLUDE_DIR)/version.mk
PKG_NAME:=base-files
-PKG_RELEASE:=110
+PKG_RELEASE:=111
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
PKG_BUILD_DEPENDS:=opkg/host
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
}
)}