diff options
author | James Rayner <james@archlinux.org> | 2009-09-23 15:55:04 +0200 |
---|---|---|
committer | James Rayner <james@archlinux.org> | 2009-09-23 15:55:04 +0200 |
commit | 4d80e053525f937b3eb76d9d2072895a826f53d6 (patch) | |
tree | 78351a487ca7d1411d3bfecc707dc344e7244bff /src/connections/ethernet | |
parent | 0bba84008f180097acf979cc2e87533c6e0bf2bd (diff) | |
download | netctl-4d80e053525f937b3eb76d9d2072895a826f53d6.tar.gz netctl-4d80e053525f937b3eb76d9d2072895a826f53d6.tar.xz |
Add WPA_DRIVER, WPA_COUNTRY and handle WEP string keys
WPA_DRVER: Configure the -D argument to wpa_supplicant, for example
-Dnl80211
WPA_COUNTRY: Set the 'country=' variable in the wpa_supplicant
configuration.
WEP string keys: modified such that they may work. Not tested yet.
Diffstat (limited to 'src/connections/ethernet')
-rw-r--r-- | src/connections/ethernet | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/connections/ethernet b/src/connections/ethernet index 1775247..20ee545 100644 --- a/src/connections/ethernet +++ b/src/connections/ethernet @@ -31,10 +31,10 @@ ethernet_up() { if checkyesno "${AUTH8021X:-no}"; then . "$SUBR_DIR/8021x" [[ -z "$WPA_CONF" ]] && WPA_CONF="/etc/wpa_supplicant.conf" - [[ -z "$WPA_OPTS" ]] && WPA_OPTS="-Dwired" + [[ -z "$WPA_DRIVER" ]] && WPA_DRIVER="wired" - report_debug ethernet_iproute_up start_wpa "$INTERFACE" "$WPA_CONF" "$WPA_OPTS" - if ! start_wpa "$INTERFACE" "$WPA_CONF" "$WPA_OPTS"; then + report_debug ethernet_iproute_up start_wpa "$INTERFACE" "$WPA_CONF" "$WPA_DRIVER" "$WPA_OPTS" + if ! start_wpa "$INTERFACE" "$WPA_CONF" "$WPA_DRIVER" "$WPA_OPTS"; then report_fail "wpa_supplicant did not start, possible configuration error" return 1 fi |