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() {
[ -z "$config" ] || {
include /lib/network
scan_interfaces
- setup_interface "$iface" "$config" "" "$vifmac"
+ for config in $config; do
+ setup_interface "$iface" "$config" "" "$vifmac"
+ done
}
)}