Re: nic + detecting the presence of a carrier
- From: "Gregory Machin" <gregory.machin@xxxxxxxxx>
- Date: Thu, 31 Aug 2006 14:35:22 +0200
Is there not a value in /proc i can get ??
On 8/31/06, Frank Elsner <Elsner@xxxxxxxxxxxxxxxx> wrote:
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
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
--
Gregory Machin
gregory.machin@xxxxxxxxx
www.linuxpro.co.za
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
- Follow-Ups:
- Re: nic + detecting the presence of a carrier
- From: Tod Merley
- Re: nic + detecting the presence of a carrier
- From: Frank Elsner
- Re: nic + detecting the presence of a carrier
- References:
- nic + detecting the presence of a carrier
- From: Gregory Machin
- Re: nic + detecting the presence of a carrier
- From: Frank Elsner
- nic + detecting the presence of a carrier
- Prev by Date: Re: Block IP
- Next by Date: Re: Block IP
- Previous by thread: Re: nic + detecting the presence of a carrier
- Next by thread: Re: nic + detecting the presence of a carrier
- Index(es):