--- /etc/init.d/net.eth0.orig 2003-11-16 00:06:09.027093733 -0800 +++ /etc/init.d/net.eth0 2003-11-16 00:27:41.748100274 -0800 @@ -33,7 +33,6 @@ inet6_IFACE="$(eval echo \$\{inet6_${iface}\})" alias_IFACE="$(eval echo \$\{alias_${iface}\})" status_IFACE="$(ifconfig | gawk -v IFACE="${iface}" '/Link/ { if ($1 == IFACE) print "up" }')" - carrier_IFACE="$(ifconfig | gawk -v IFACE="${iface}" '/RUNNING/ { if ($1 == IFACE) print "running" }')" vlans="$(eval echo \$\{iface_${IFACE}_vlans\})" } @@ -63,7 +62,9 @@ if [ "${status_IFACE}" != "up" ] then # Check that the interface has a carrier - if [ "${carrier_IFACE}" = "running" ] + # The interface has to be up before we can check that it has a carrier + /sbin/ifconfig ${IFACE} up + if ifconfig eth0 | grep RUNNING >/dev/null then /sbin/dhcpcd ${dhcpcd_IFACE} ${IFACE} >/dev/null || { retval=$?