Saner Ifupdown Defaults
=======================

Without going into complex network detection issues, guessnet can be used with
very little effort to avoid the annoying DHCP timeout at boot when no cable is
connected to the ethernet device.

To do it, just use something like this /etc/network/interfaces file:

----------------------------------------------------------------------
auto lo eth0

iface lo inet loopback

# Use guessnet
mapping eth0
	script /usr/sbin/guessnet-ifupdown
	map default: dhcp

# If there is no link detected, don't try DHCP
#
# Here it would be useful to have 'fail' method for iface that just
# keeps the interface down (see ifupdown bug #275326)
# In the meantime, leave the interface unconfigured by hand.
iface interface inet manual
	test missing-cable
	pre-up echo No link present.
	pre-up false

# By default, perform DHCP
iface dhcp inet dhcp
----------------------------------------------------------------------
