X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/d802b2e8f350a00aa9e2c1c116df22943cab1ead..002c3c665289b52eb20fd899fd3561e7f9d9e073:/package/base-files/files/sbin/wifi diff --git a/package/base-files/files/sbin/wifi b/package/base-files/files/sbin/wifi index 2e66bfcbe..5cbf50b5f 100755 --- a/package/base-files/files/sbin/wifi +++ b/package/base-files/files/sbin/wifi @@ -129,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() {