Lines 68-73
Link Here
|
68 |
eend ${retval} "Failed to bring ${IFACE} up" |
68 |
eend ${retval} "Failed to bring ${IFACE} up" |
69 |
return ${retval} |
69 |
return ${retval} |
70 |
} |
70 |
} |
|
|
71 |
# After a "ifconfig up" some drivers can take 2secs (eg: e100) |
72 |
# to mark the interface as 'RUNNING', so wait 2secs max |
73 |
local count=0 |
74 |
while ! ifconfig ${IFACE} | grep -qc 'RUNNING' &>/dev/null && \ |
75 |
[ $count -lt 4 ] |
76 |
do |
77 |
sleep 0.5 |
78 |
count=$((count + 1)) |
79 |
done |
71 |
# Check that the interface has a carrier |
80 |
# Check that the interface has a carrier |
72 |
if ifconfig ${IFACE} | grep -qc 'RUNNING' &>/dev/null |
81 |
if ifconfig ${IFACE} | grep -qc 'RUNNING' &>/dev/null |
73 |
then |
82 |
then |