← Commit list

d9461f887

Glenn L McGrath
Glenn L McGrath
2003-09-01
FAILED Duration: 87s

Subject

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

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/udhcp/dhcpc.c+1 -0
@@ -297,6 +297,7 @@ int udhcpc_main(int argc, char *argv[])
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();