5

Is internet cable pluged in?

view full story
linux-howto

http://forums.fedoraforum.org – Heyas Is there a file to check if a ethernet cable is pluged in to the laptop? I did some search in /proc, but probably have missed the proper file, didnt recognize or mis interpreted that specific value. Thank you PS: Ok, got some guesses: * ip addr | grep BROADCAST | grep -v NO-CARRIER * cat /sys/class/net/${em0|eth0|p3p1}/carrier But i'm kinda unsure how accurate this is. (HowTos)