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
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to