[PATCH] on lease/pid-file for udhcpd/c
Mats Erik Andersson
mats at blue2net.com
Fri Jun 29 19:22:55 UTC 2007
Hello all,
I was getting annoyed at the reluctance of udhcpd to
volontarily update its lease file when a new lease has
been granted. The attached patch introduces a configuration
entry for Busybox 1.6.0 to write a new copy of the lease
file immediately when it has sent DHCPACK.
It took me some time to figure it out, but starting with
Busybox 1.6.0 there is a new entry FEATURE_PIDFILE, which when
forgotten causes udhcpc to complain about missing pidfile as
soon as one tries to release the device. To avoid that serious
malfunction I strongly suggest an addition to
networking/udhcp/Config.in:
config APP_UDHCPC
...
select FEATURE_PIDFILE
The attached diff-file is bold enough to take care of
both matters.
Best regards, Mats E A
-------------- next part --------------
A non-text attachment was scrubbed...
Name: write_leases_early.diff
Type: text/x-patch
Size: 1503 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070629/8b707c90/attachment-0002.bin
More information about the busybox
mailing list