[kwlug-disc] [SPAM] Re: Detecting and using wired network when available

Lori Paniak ldpaniak at fourpisolutions.com
Wed Jul 7 15:18:24 EDT 2010


On Wed, 2010-07-07 at 15:15 -0400, Kareem Shehata wrote:
> On 2010-07-07, at 15:08 , Andrew Kohlsmith (mailing lists account) wrote:
> 
> > On Wednesday, July 07, 2010 02:46:00 pm Kareem Shehata wrote:
> >> In Mac and Windows it's as easy as giving each interface a gateway and a
> >> metric, and the system just figures out which one to use.  Any idea how to
> >> get Linux to do this?
> > 
> > Ubuntu's spoiled me; the network manager takes care of it automagically for me 
> > these days.
> > 
> > If I had to take it a step lower though, I imagine I'd play with ifup/ifdown 
> > scripts that debian would already have in place.
> 
> >From what I'm seeing, the interface isn't marked as up or down, which is the source of the problem.
> 
> > Taking it a step lower than that yet, though, you'd have to use udev events 
> > for the link messages on the PHY of the wired interface.
> 
> That would truly be painful, but doable.  From what I'm hearing, I could code my own little app to poll the ioctl for link messages.  I can't help but think there's an easier way.
> 
> --
> Kareem Shehata
> kshehata at aeryon.com
> Aeryon Labs Inc
> 519-489-6726 x254

What kind of distribution are you running on your embedded device?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20100707/e52f8170/attachment.sig>


More information about the kwlug-disc mailing list