1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

[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
This commit is contained in:
jow
2012-06-26 15:25:33 +00:00
parent 75f167e6de
commit 40add56ce9
2 changed files with 10 additions and 5 deletions

View File

@@ -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
}
)}