[BusyBox] udhcpc and APIPA ???

Steven Scholz steven.scholz at imc-berlin.de
Fri Aug 8 11:35:54 UTC 2003


I wrote:

> How about adding
> --- networking/udhcp/dhcpc.c    20 Jun 2003 09:20:28 -0000      1.11
> +++ networking/udhcp/dhcpc.c    7 Aug 2003 17:01:18 -0000
> @@ -297,6 +297,7 @@ int udhcpc_main(int argc, char *argv[])
>                                         timeout = now + ((packet_num == 
> 2) ? 4 : 2);
>                                         packet_num++;
>                                 } else {
> +                                       run_script(NULL, "failed");
>                                         if 
> (client_config.background_if_no_lease) {
>                                                 LOG(LOG_INFO, "No lease, 
> forking to background.");
>                                                 client_background();
> 
> some we could handle a failed DHCP request in the 
> /share/udhcpc/default.script!?

Apparently someone had this idea at the udhcp mailing list as well.
So maybe we add this line:

+					run_script(NULL, "leasefail");

Steven





More information about the busybox mailing list