Patch for dhcpc for immediate backgrounding
Denis Vlasenko
vda.linux at googlemail.com
Fri Jun 8 07:35:49 UTC 2007
On Tuesday 05 June 2007 17:35, John Kamenik wrote:
> 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.
What about using "setsid udhcpcd >/dev/null 2>/dev/null </dev/null &"?
--
vda
More information about the busybox
mailing list