summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrea Scarpino <andrea@archlinux.org>2009-04-29 14:05:37 +0200
committerAndrea Scarpino <andrea@archlinux.org>2009-04-29 14:05:37 +0200
commit22db3ac767600c750f622fe979ce8a7ee746129e (patch)
tree4feefd2ab5b5cb7d52a34f5285dab2d5db0600bc /src
parente79fbf4f333c5ca1dd9749d37fdb4528a5f444c1 (diff)
downloadnetctl-22db3ac767600c750f622fe979ce8a7ee746129e.tar.gz
netctl-22db3ac767600c750f622fe979ce8a7ee746129e.tar.xz
undo WPA and ethernet
Diffstat (limited to 'src')
-rw-r--r--src/connections/ethernet13
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