Re: How to tell an eth port has link?
CptDondo wrote:
> There has to be a way to tell if the ethernet port has a cable plugged in.
>
> I see the kernel message go by telling me it has lost or established the
> link when I plug the cable in... But I can't find anything that would
> tell me the status from userspace.
>
> I've been all through /proc and I don't see anything that would clue me
> in....
>
> So... How to tell if an ethX port has a valid hardware link? I need to
> test this before networking comes up so I know if I should run DHCP or
> not...
>
> --Yan
Maybe you like to have ifplugd?
--
Tauno Voipio
tauno voipio (at) iki fi
|