summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorTomek Mrugalski <tomasz@isc.org>2017-06-22 15:37:17 +0200
committerTomek Mrugalski <tomasz@isc.org>2017-06-22 15:37:17 +0200
commit3f2eb206639e5e08b8a07e2c6cad479445bc1654 (patch)
tree0a4d10dffed71f67bec449a41b2287d86070cc3c /client
parentff343a30c46c78902766787f50d811dd6ced64e4 (diff)
parentd43a58357306ead91a2a0a8689b514667704f5db (diff)
downloadisc-dhcp-3f2eb206639e5e08b8a07e2c6cad479445bc1654.tar.gz
[master] Merge branch 'rt18183' (script call with fail reason and -1)
# Conflicts: # RELNOTES
Diffstat (limited to 'client')
-rw-r--r--client/dhclient.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/client/dhclient.c b/client/dhclient.c
index 56586f2b..98422f02 100644
--- a/client/dhclient.c
+++ b/client/dhclient.c
@@ -1482,6 +1482,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);
@@ -2491,6 +2496,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);
}