summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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