a /system/etc/dhcpcd/dhcpcd-hooks and the user defined hooks are
a /system/etc/dhcpcd/dhcpcd.enter-hook . and
a /system/etc/dhcpcd/dhcpcd.exit-hook . The default install supplies hook scripts for configuring
a /etc/resolv.conf and the hostname. Your distribution may have included other hook scripts to say configure ntp or ypbind. A test hook is also supplied that simply echos the dhcp variables to the console from DISCOVER message.
p Each time .Nm is invoked, .Ev $interface is set to the interface that .Nm dhcpcd is run on and .Ev $reason is to the reason why .Nm was invoked. DHCP information to be configured is held in variables starting with the word new_ and old DHCP information to be removed is held in variables starting with the word old_. .Nm dhcpcd can display the full list of variables it knows how about by using the .Fl V , -variables argument.
p Here's a list of reasons why .Nm could be invoked: l -tag -width indent t Dv PREINIT dhcpcd is starting up and any pre-initialisation should be done. t Dv INFORM dhcpcd informed a DHCP server about it's address and obtained other configuration details. t Dv BOUND dhcpcd obtained a new lease from a DHCP server. t Dv RENEW dhcpcd renewed it's lease. t Dv REBIND dhcpcd has rebound to a new DHCP server. t Dv REBOOT dhcpcd successfully requested a lease from a DHCP server. t Dv EXPIRE dhcpcd's lease expired and it failed to obtain a new one. t Dv IPV4LL dhcpcd failed to contact any DHCP servers but did obtain an IPV4LL address. t Dv FAIL dhcpcd failed to contact any DHCP servers or use an old lease. t Dv TIMEOUT dhcpcd failed to contact any DHCP servers but was able to use an old lease. t Dv TEST dhcpcd received an OFFER from a DHCP server but will not configure the interface. This is primarily used to test the variables are filled correctly for the script to process them. .El .Sh FILES When .Nm runs, it loads
a /system/etc/dhcpcd/dhcpcd.enter-hook and any scripts found in
a /system/etc/dhcpcd/dhcpcd-hooks in a lexical order and then finally
a /system/etc/dhcpcd/dhcpcd.exit-hook .Sh SEE ALSO .Xr dhcpcd 8 .Sh AUTHORS .An Roy Marples <roy (at] marples.name> .Sh BUGS Please report them to http://roy.marples.name/projects/dhcpcd