diff options
-rw-r--r-- | sbin/dhclient/dhclient.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index 484f747a474..93298b2f729 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.154 2012/09/01 19:02:27 krw Exp $ */ +/* $OpenBSD: dhclient.c,v 1.155 2012/09/17 20:30:17 krw Exp $ */ /* * Copyright 2004 Henning Brauer <henning@openbsd.org> @@ -243,6 +243,10 @@ routehandler(void) if (ifi->linkstat) { client->state = S_REBOOTING; state_reboot(); + } else if (client->active) { + script_init("FAIL"); + script_write_params("old_", client->active); + script_go(); } } break; @@ -261,7 +265,9 @@ routehandler(void) die: script_init("FAIL"); + script_write_params("old_", client->active); script_go(); + sleep(2); error("routehandler: %s", errmsg); } |