How to configure `eth0` to retry `dhclient` when unplugged and replugged?

Richard Holden rholdeniii at gmail.com
Wed Sep 7 11:47:38 MDT 2011


On Wed, Sep 7, 2011 at 11:20 AM, AJ ONeal <coolaj86 at gmail.com> wrote:

> I'm working on a linux gadget.
>
> I want it to get DHCP if I plug in the network cable after it has booted up
> already or if the network cable unplugged and replugged.
>
>
> However, I've got a feeling deep down in my little toe that tells me that
> there's a better way to deal with hotplug events for the ethernet cable.
>
> Do any of you know what way that is?
>
>
> AJ ONeal
>
>
A quick Google search turned up netplugd, I don't have access to my Linux
box right now so I don't know how modern it is but it looks like exactly
what you want.

http://linux.die.net/man/8/netplugd

-Richard Holden


More information about the PLUG mailing list