Patch for dhcpc for immediate backgrounding

John Kamenik jkamenik at patton.com
Tue Jun 5 15:35:11 UTC 2007


All,

I have patched the 1.00 version of BusyBox's DHCP Client to add the  
option to Daemonize at start.  I took a quick look at the 1.6 version  
of BusyBox and it looks like the change could be easily applied to  
it.  I unfortunately do not use 1.6 and do not have time to patch it  
myself.

The patch simply adds a "-B" option which will cause the udhcpc  
program to background immediately.  It does NOT replace the "-b"  
which causes udhcpc to background after it attempts to get a lease.   
I added it so I do not have to block waiting for the first lease  
attempt, which can take a decent amount of time if there is no DHCP  
server to contact.



John T. Kamenik (Software Eng.)
jkamenik at patton.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/busybox/attachments/20070605/5aa38486/attachment-0004.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dhcpc.c.patch
Type: application/octet-stream
Size: 1771 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070605/5aa38486/attachment-0002.obj 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/busybox/attachments/20070605/5aa38486/attachment-0005.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070605/5aa38486/attachment-0002.pgp 


More information about the busybox mailing list