busybox udhcpc client

Rich Felker dalias at aerifal.cx
Sat Feb 15 04:46:58 UTC 2014


On Fri, Feb 14, 2014 at 07:06:50PM -0600, Mike Dean wrote:
> Hi,
> 
> Does anyone know if there's a way I can find out when udhcpc gets a new IP
> address assigned via DHCP?  I would like to trigger a script on this event,
> but I can't find any files to watch or any hooks I can use to trigger my
> script.  Any help with this would be greatly appreciated.

See udhcpc --help. There's a script option (-s) which controls what's
executed on dhcp state changes. Without any script, udhcpc will not
even change the interface ip; it just makes the dhcp requests to the
server but leaves alone the local network config.

Rich


More information about the busybox mailing list