[BusyBox-cvs] busybox/networking/udhcp dhcpc.c,1.12,1.13
Glenn McGrath
bug1 at busybox.net
Mon Sep 1 04:08:41 UTC 2003
Update of /var/cvs/busybox/networking/udhcp
In directory winder:/tmp/cvs-serv1532/networking/udhcp
Modified Files:
dhcpc.c
Log Message:
Allow one to detect and handle the case where no lease could be obtained
via DHCP. (Just add a section "failed" to your script.)
Patch by Steven Scholz
Index: dhcpc.c
===================================================================
RCS file: /var/cvs/busybox/networking/udhcp/dhcpc.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- dhcpc.c 29 Aug 2003 15:19:44 -0000 1.12
+++ dhcpc.c 1 Sep 2003 04:08:36 -0000 1.13
@@ -297,6 +297,7 @@
timeout = now + ((packet_num == 2) ? 4 : 2);
packet_num++;
} else {
+ run_script(NULL, "leasefail");
if (client_config.background_if_no_lease) {
LOG(LOG_INFO, "No lease, forking to background.");
client_background();
More information about the busybox-cvs
mailing list