Add work-around for Cisco portfast not being fast
Jason D. Clinton [Tue, 21 Apr 2009 20:11:28 +0000 (15:11 -0500)]
etc/hardware.sh

index 5441e1a..368e840 100755 (executable)
@@ -32,6 +32,11 @@ dhcp_on_interface() {
 
        msg -n "Trying DHCP on ${i} interface"
 
+       # work around Cisco portfast implementation not being fast
+       /sbin/ifconfig ${i} up
+
+       sleep 1
+
        /sbin/udhcpc -i ${INTERFACE} -n -s /etc/ifup.udhcp.sh \
                -p /tmp/dhcp.${INTERFACE}.pid >> /tmp/stdout.log 2>> /tmp/stderr.log