From 22db3ac767600c750f622fe979ce8a7ee746129e Mon Sep 17 00:00:00 2001 From: Andrea Scarpino Date: Wed, 29 Apr 2009 14:05:37 +0200 Subject: undo WPA and ethernet --- src/connections/ethernet | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-24-g4f1b