diff options
author | James Rayner <james@archlinux.org> | 2009-02-26 10:42:04 +0100 |
---|---|---|
committer | James Rayner <james@archlinux.org> | 2009-02-26 10:42:04 +0100 |
commit | 9997a323581c7152e67830690d80d213d7c0d2e2 (patch) | |
tree | 80cf66634917464880ef78abd22a216b2d67f808 /src/connections/ethernet | |
parent | c2838593ab2cc04cb702042066d912f1bcbcc201 (diff) | |
download | netctl-9997a323581c7152e67830690d80d213d7c0d2e2.tar.gz netctl-9997a323581c7152e67830690d80d213d7c0d2e2.tar.xz |
Update and re-arrange examples, update wireless quirk options, stop
using deprecated sys interface
Diffstat (limited to 'src/connections/ethernet')
-rw-r--r-- | src/connections/ethernet | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/connections/ethernet b/src/connections/ethernet index ad9e870..9ec27fb 100644 --- a/src/connections/ethernet +++ b/src/connections/ethernet @@ -11,13 +11,19 @@ ethernet_up() { fi fi + # Connection check if ip link show "$INTERFACE"|grep -q "NO-CARRIER"; then err_append "no connection available" return 1 fi ifconfig "$INTERFACE" up - + + # Some hardware is not immediately ready after ifconfig up + while ip link show $INTERFACE|grep -q "state UNKNOWN"; do + sleep 0.5 + done + if checkyesno "${AUTH8021X:-no}"; then . "${SUBR_DIR}"/8021x [[ -z "$WPA_CONF" ]] && WPA_CONF="/etc/wpa_supplicant.conf" @@ -116,7 +122,7 @@ ethernet_down() { esac ifconfig $INTERFACE 0.0.0.0 - case "$CONNECTION" in + case "$CONNECTION" in # Keep interface up for wireless ethernet|ethernet-old) quirk "nodown" || ifconfig $INTERFACE down ;; |