diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2013-04-22 11:57:12 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2013-04-22 11:57:12 +0200 |
commit | f3b0dcc3b596f23d91a7161a539247bb9b846457 (patch) | |
tree | 9e9558a60e84fff132170222dcf8b01e23448232 /package/base-files/src | |
parent | b0580f26f7a01fbc0a6482e637d64f550c55da40 (diff) |
allow the use of WEP
Diffstat (limited to 'package/base-files/src')
-rwxr-xr-x | package/base-files/src/etc/network/if-pre-up.d/04-wireless | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/package/base-files/src/etc/network/if-pre-up.d/04-wireless b/package/base-files/src/etc/network/if-pre-up.d/04-wireless index ebcec5a12..030502efc 100755 --- a/package/base-files/src/etc/network/if-pre-up.d/04-wireless +++ b/package/base-files/src/etc/network/if-pre-up.d/04-wireless @@ -90,8 +90,11 @@ case "$IF_WIRELESS_MODE" in exit 1 } driver=nl80211 - iw dev ${IFACE} set channel $IF_WIRELESS_CHANNEL - iw dev ${IFACE} connect $IF_WIRELESS_SSID + [ $sec -eq 2 ] && { + iw dev ${IFACE} connect $IF_WIRELESS_SSID key d:0:$IF_WIRELESS_PASSPHRASE + } || { + iw dev ${IFACE} connect $IF_WIRELESS_SSID + } } [ $wpa2 -eq 1 ] && { [ -x /usr/sbin/wpa_supplicant ] || { |