dhclient - When a link is lost, call dhclient-script with reason "FAIL".
authorAntonio Huete Jimenez <tuxillo@quantumachine.net>
Sat, 2 Aug 2014 12:04:09 +0000 (14:04 +0200)
committerAntonio Huete Jimenez <tuxillo@quantumachine.net>
Sat, 9 Aug 2014 16:29:37 +0000 (18:29 +0200)
commita80b00a38e93c31b2070740562fbe5a19544c513
tree81e8f319f30eba848f70a66d64c48425a212ac85
parent3281ce24b13c2a32c1e4e74c332462c3063f9cbb
dhclient - When a link is lost, call dhclient-script with reason "FAIL".

- This does the resolv.conf dance and removes 'dead' routes, rather than
  leaving these droppings behind.

- When dhclient is exiting after calling dhclient-script with "FAIL",
  give the script a couple of seconds to finish. Also pass the lease
  parameters (old_*) to dhclient-script so routes can be cleaned up
  in this path too.

Taken-from: OpenBSD
sbin/dhclient/dhclient.c