How do I retrieve the link state?
what command do I run to determine whether there is a ethernet cable plugged into a interface?
running "ifconfig eth0" isn't reliable since I could run "ifup eth0" first. Which will make "ifconfig eth0" report Link UP under scope, regardless of whether there was a ethernet cable plugged in.
|