Is there not a value in /proc i can get ??<br><br><div><span class="gmail_quote">On 8/31/06, <b class="gmail_sendername">Frank Elsner</b> <<a href="mailto:Elsner@zrz.tu-berlin.de">Elsner@zrz.tu-berlin.de</a>> wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Thu, 31 Aug 2006 12:04:12 +0200 Gregory Machin wrote:<br>> Hi.<br>> I need to write a script the can restart services based on where a cable is
<br>> plugged into a nic or not ..<br>> How do I get the status of the carrier on the nic ...<br><br>The output of "ethtool ethX" contains the line<br><br>               Link detected: yes<br><br>and the output of "mii-tool ethX" shows
<br><br>                   eth0: negotiated 100baseTx-FD, link ok<br><br>which both should be usable for your purpose.<br><br><br><br>--Frank Elsner<br><br>--<br>fedora-list mailing list<br><a href="mailto:fedora-list@redhat.com">
fedora-list@redhat.com</a><br>To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list">https://www.redhat.com/mailman/listinfo/fedora-list</a><br></blockquote></div><br><br clear="all"><br>-- <br>Gregory Machin
<br><a href="mailto:gregory.machin@gmail.com">gregory.machin@gmail.com</a><br><a href="http://www.linuxpro.co.za">www.linuxpro.co.za</a>