X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/3751e75fb0166a9955e839d3a1d760a6816690d0..43e043890d5b61b05c819b3ad866edf5f874352d:/package/base-files/files/sbin/wifi diff --git a/package/base-files/files/sbin/wifi b/package/base-files/files/sbin/wifi index e2dd0a32d..5cbf50b5f 100755 --- a/package/base-files/files/sbin/wifi +++ b/package/base-files/files/sbin/wifi @@ -40,6 +40,7 @@ bridge_interface() {( config_get iftype "$cfg" type [ "$iftype" = bridge ] && config_get "$cfg" ifname + prepare_interface_bridge "$cfg" )} prepare_key_wep() { @@ -128,9 +129,11 @@ start_net() {( local vifmac="$3" [ -f "/var/run/$iface.pid" ] && kill "$(cat /var/run/${iface}.pid)" 2>/dev/null - include /lib/network - scan_interfaces - setup_interface "$iface" "$config" "" "$vifmac" + [ -z "$config" ] || { + include /lib/network + scan_interfaces + setup_interface "$iface" "$config" "" "$vifmac" + } )} set_wifi_up() {