On Tuesday 06 November 2007 17:32, Paul Fox wrote: > i wrote: > > > when udhcpc fails to get a lease, it waits a full minute before > > > trying again. in some cases this is far too long. clearly > > > the udhcpc commandline is becoming over-burdened, but without > > > a config file, there's not much choice: i'd like to add > > > an option (i chose '-A', for "again") which lets one set the > > > try-again value. > > here's the fixed/tested patch. i will apply in a day or two if > no one objects.
No objections. > --- include/usage.h 5 Nov 2007 13:45:42 -0000 1.1.1.1 > +++ include/usage.h 6 Nov 2007 17:29:43 -0000 > @@ -3835,6 +3835,8 @@ > "\n -r,--request=IP IP address to request" \ > "\n -s,--script=file Run file at dhcp events (default: > /usr/share/udhcpc/default.script)" \ > "\n -t,--retries=N Send up to N request packets"\ > + "\n -T,--timeout=N Try to get a lease for N seconds > (default: 3)"\ > + "\n -A,--tryagain=N Wait N seconds (default: 60) after > failure"\ > "\n -f,--foreground Run in foreground" \ > "\n -b,--background Background if lease cannot be immediately > negotiated" \ > "\n -S,--syslog Log to syslog too" \ Youforgot to add help text to the section which is active when long options are disabled. See SKIP_GETOPT_LONG(...) a few lines below that your change. -- vda _______________________________________________ busybox mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/busybox
