sense_link -- Sense if an ethernet cable is plugged into the jack at the physical layer
http://www.flygirl.com/sense_link.c
Lisa Corsetti, the author of the code said: While still at VA I threw a
small program together for this very reason. Since we were using DHCP,
the laptop would take forever to boot (trying to get a dhcp address)
if there were no cable plugged in. [svlug mailing list, 1 May 2003]