Re: nic + detecting the presence of a carrier

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 31 Aug 2006 12:04:12 +0200 Gregory Machin wrote:
> Hi.
> I need to write a script the can restart services based on where a cable is
> plugged into a nic or not ..
> How do I get the status of the carrier on the nic ...

The output of "ethtool ethX" contains the line

               Link detected: yes

and the output of "mii-tool ethX" shows

                   eth0: negotiated 100baseTx-FD, link ok
                   
which both should be usable for your purpose.



--Frank Elsner


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux