From c788d4f8d4e8cea9913d46ee0a24c67f3cd78e98 Mon Sep 17 00:00:00 2001 From: Tomek Mrugalski Date: Thu, 18 May 2017 22:00:51 +0200 Subject: [19430] dhclient now calls script with reason=FAIL even with -1 option --- client/dhclient.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'client') diff --git a/client/dhclient.c b/client/dhclient.c index ad3c899b..1f07d20c 100644 --- a/client/dhclient.c +++ b/client/dhclient.c @@ -1471,6 +1471,11 @@ void bind_lease (client) if (!quiet) log_info("Unable to obtain a lease on first " "try (declined). Exiting."); + + /* Let's call a script and we're done */ + script_init(client, "FAIL", (struct string_list *)0); + script_go(client); + finish(2); } else { state_init(client); @@ -2480,6 +2485,11 @@ void state_panic (cpp) if (!quiet) log_info ("Unable to obtain a lease on first try.%s", " Exiting."); + + /* Let's call a script and we're done */ + script_init(client, "FAIL", (struct string_list *)0); + script_go(client); + finish(2); } -- cgit v1.2.1