diff options
author | Andrea Scarpino <andrea@archlinux.org> | 2009-04-29 14:05:37 +0200 |
---|---|---|
committer | Andrea Scarpino <andrea@archlinux.org> | 2009-04-29 14:05:37 +0200 |
commit | 22db3ac767600c750f622fe979ce8a7ee746129e (patch) | |
tree | 4feefd2ab5b5cb7d52a34f5285dab2d5db0600bc /src/connections/ethernet | |
parent | e79fbf4f333c5ca1dd9749d37fdb4528a5f444c1 (diff) | |
download | netctl-22db3ac767600c750f622fe979ce8a7ee746129e.tar.gz netctl-22db3ac767600c750f622fe979ce8a7ee746129e.tar.xz |
undo WPA and ethernet
Diffstat (limited to 'src/connections/ethernet')
-rw-r--r-- | src/connections/ethernet | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/connections/ethernet b/src/connections/ethernet index 4c97e55..6ac3b65 100644 --- a/src/connections/ethernet +++ b/src/connections/ethernet @@ -23,7 +23,18 @@ ethernet_up() { return 1 fi done - + + if checkyesno "${AUTH8021X:-no}"; then + . "${SUBR_DIR}"/8021x + [[ -z "$WPA_CONF" ]] && WPA_CONF="/etc/wpa_supplicant.conf" + [[ -z "$WPA_OPTS" ]] && WPA_OPTS="-Dwired" + start_wpa "$INTERFACE" "$WPA_CONF" "$WPA_OPTS" + if ! wpa_check "$INTERFACE"; then + ifconfig "$INTERFACE" down + return 1 + fi + fi + case $IP in dhcp) if checkyesno "${DHCLIENT:-no}"; then |