summaryrefslogtreecommitdiff
path: root/client/dhclient.c
diff options
context:
space:
mode:
Diffstat (limited to 'client/dhclient.c')
-rw-r--r--client/dhclient.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/client/dhclient.c b/client/dhclient.c
index fd5ac2df..aadf2b33 100644
--- a/client/dhclient.c
+++ b/client/dhclient.c
@@ -1272,6 +1272,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);
+
exit(2);
} else {
state_init(client);
@@ -2082,6 +2087,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);
+
exit (2);
}