Rich, Thank you for the prompt response on this. I am looking into modifying the code for the busybox version of ifup to add the -s option and will see if I can make it work for my application.
Thank you, Mike Dean md...@emacinc.com http://www.emacinc.com/ Engineer EMAC, Inc. 618-529-4525 Ext. 330 618-457-0110 Fax 2390 EMAC Way Carbondale, Il 62901 On Fri, Feb 14, 2014 at 10:46 PM, Rich Felker <dal...@aerifal.cx> wrote: > 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 busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox