--- net.eth0-1.33 2003-11-18 09:41:49.000000000 +0100 +++ net.eth0-1.33 2003-11-18 12:12:03.000000000 +0100 @@ -68,6 +68,15 @@ eend ${retval} "Failed to bring ${IFACE} up" return ${retval} } + # After a "ifconfig up" some drivers can take 2secs (eg: e100) + # to mark the interface as 'RUNNING', so wait 2secs max + local count=0 + while ! ifconfig ${IFACE} | grep -qc 'RUNNING' &>/dev/null && \ + [ $count -lt 4 ] + do + sleep 0.5 + count=$((count + 1)) + done # Check that the interface has a carrier if ifconfig ${IFACE} | grep -qc 'RUNNING' &>/dev/null then