[PATCH] udhcp: infinite retries

Steven Scholz steven.scholz at imc-berlin.de
Tue Feb 6 16:22:13 UTC 2007


Samuel Ortiz wrote:
> Paul Fox wrote:
>>  > >>> It may be useful (at least it is for us) to keep on sending DHCP request 
>>  > >>> and renewals for ever until we actually get an answer. For that purpose 
>>  > >>> udhcpc -t 0 could do the job.
>>  > >> I guess udhcpc -t 999999999 will be the same in practice.
>>  > > 
>>  > > Almost, but not exactly.
>>  > > We have machines that can be powered up without being connected to any 
>>  > > network for weeks. However, we need them to fetch an IP if they ever get 
>>  > > plugged to some network.
>>  > 
>>  > Then maybe you want to use something like netplugd ot ifplugd ...
>>
>> of course that takes care of the locally connected problem, but
>> not the "connected to a switch which is itself disconnected"
>> problem.  but i agree -- if it were me, i'd probably use a
>> combination of the mechanisms.
> well, with the infinite retries option, we can live without netplugd.
How about using

-b,     --background
	Fork to background if lease cannot be immediately negotiated.

???

Steven



More information about the busybox mailing list