Dan Nicholson wrote:
This applies to the pppoe bootscript too. But, even better, please include ifplugd in the book, so that dhcpcd is run when the link actually appears. This also has the benefit of correct rouing for laptop users that use GPRS in road and Ethernet connection at offices (with static or dynamic IP).+# Abort startup and issue a warning if interface lacks a carrier. +link_status=`ip link show ${1} 2> /dev/null` +if [ "$2" = "up" ] && echo $link_status | grep -q "NO-CARRIER" ; then + boot_mesg "Skipping startup of dhcpcd: '${1}' NO-CARRIER!" ${WARNING} + echo_warning + exit 0 +else +This is almost two months old now, but I'm looking at getting it in right now. I hope you're still there. And I brought this to blfs-dev to get more eyes.
-- Alexander E. Patrakov -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
