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

Kareem Shehata kshehata at aeryon.com
Wed Jul 7 17:08:13 EDT 2010


On 2010-07-07, at 15:18 , Andrew Kohlsmith (mailing lists account) wrote:

> On Wednesday, July 07, 2010 03:15:31 pm Kareem Shehata wrote:
>> 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.
> 
> Why on earth would you poll for ioctl? udev rules can run scripts and they're 
> really pretty straightforward.


Will udev scripts be fired if the link state changes, but the actual device is still present?

I've just tried adding a udev rule for eth0, but couldn't get it to fire from just pulling the cable.

-kms


--
Kareem Shehata
kshehata at aeryon.com
Aeryon Labs Inc
519-489-6726 x254





More information about the kwlug-disc mailing list