Re: Run a program when the network becomes available

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/21/09, James Cheng <jcheng@xxxxxxxx> wrote:
> Thanks, I'll take a look at ifplugd. More specifically, I want to use ntp to
> sync up the clock when the network becomes available. It looks like ifplugd
> allows me to specify my own actions.
>
> I'll have to look if what it takes to add ifplugd to my environment. Aside
> from that, is there a way to do this using only udev?
>
> Thanks,
> -James
>
>> -----Original Message-----
>> From: Bob Beers [mailto:bob.beers@xxxxxxxxx]
>> Sent: Wednesday, October 21, 2009 11:04 AM
>> To: James Cheng
>> Cc: linux-hotplug@xxxxxxxxxxxxxxx
>> Subject: Re: Run a program when
>>
>> On Wed, Oct 21, 2009 at 12:49 PM, James Cheng <jcheng@xxxxxxxx> wrote:
>> > Hi,
>> >
>> > I am on an embedded system. I'd like to receive notification of when
>> a network interface has become available. This is to handle the case
>> when the system is booted up without any network plugged in, and then
>> someone plugs in a network at some point later. Ideally, I'd like to be
>> notified when the interface actually receives a DHCP address, but if
>> that's not possible, then a notification on the network being plugged
>> in would work as well.
>> >
>>
>> Have you looked at ifplugd?  It notices link up and down and will
>>  configure and de-configure the interface.
>>
>> > Can udev help me with this? Can I write a rule that runs some sort of
>> program when this happens? I saw references on the mailing list to
>> ethtool or some other things, but I wasn't sure what the latest status
>> was.

The current status is no, the kernel does not emit CHANGE uevents when
the link status changes.
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux