Not all the hooks in dhcpcd-hooks are installed by default.
By default we install 01-test, 02-dump, 10-mtu, 10-wpa_supplicant,
15-timezone, 20-resolv.conf, 29-lookup-hostname and 30-hostname.
-The default dhcpcd.conf disables the lookup-hostname hook by default.
+The other hooks, 15-timezone, 29-lookup-hostname are installed
+to $(datadir)/dhcpcd/hooks by default and need to be copied to
+$(libexecdir)/dhcpcd-hooks for use.
The configure program attempts to find hooks for systems you have installed.
To add more simply
./configure -with-hook=ntp.conf
SCRIPTSDIR= ${LIBEXECDIR}/dhcpcd-hooks
SCRIPTS= 01-test 02-dump
SCRIPTS+= 10-wpa_supplicant 20-resolv.conf
-SCRIPTS+= 29-lookup-hostname 30-hostname
+SCRIPTS+= 30-hostname
SCRIPTS+= ${HOOKSCRIPTS}
# Some hooks should not be installed by default
FILESDIR= ${DATADIR}/dhcpcd/hooks
FILES= 15-timezone
+FILES+= 29-lookup-hostname
50-ypbind: 50-ypbind.in
${SED} \
# Generate Stable Private IPv6 Addresses instead of hardware based ones
slaac private
-
-# A hook script is provided to lookup the hostname if not set by the DHCP
-# server, but it should not be run by default.
-nohook lookup-hostname