Re: Run a program when

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

 



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.
>
> Thanks!
> -James
>

HTH,
-Bob
--
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