dhclient - Tweak leases file handling.
authorAntonio Huete Jimenez <tuxillo@quantumachine.net>
Sat, 4 Aug 2012 18:36:23 +0000 (20:36 +0200)
committerAntonio Huete Jimenez <tuxillo@quantumachine.net>
Sun, 19 Aug 2012 14:30:48 +0000 (16:30 +0200)
commitcc08537da087ebff8723590fc54e2336868d3740
treedff7d5f0960958d3f012b356a480f81b90c88c18
parent741bbb9f50a671d74b6ad0ee4b6d5e423f9309e4
dhclient - Tweak leases file handling.

- Write out new leases file every time a lease is obtained. i.e. don't
  append 20 leases before cleaning it up.
- Write new leases file after calling dhclient-script to implement
  new info. Gets interface configured first, and makes it more likely
  the leases file reflects most current configuration.

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