start wpa_supplicant by default on a wireless interface, even if a wpa_ctrl interface is configured for it and wpa_supplicant is not yet started.
SED_RUNDIR= -e 's:@RUNDIR@:${RUNDIR}:g'
SED_DBDIR= -e 's:@DBDIR@:${DBDIR}:g'
SED_LIBDIR= -e 's:@LIBDIR@:${LIBDIR}:g'
+SED_DATADIR= -e 's:@DATADIR@:${DATADIR}:g'
SED_HOOKDIR= -e 's:@HOOKDIR@:${HOOKDIR}:g'
SED_SERVICEEXISTS= -e 's:@SERVICEEXISTS@:${SERVICEEXISTS}:g'
SED_SERVICECMD= -e 's:@SERVICECMD@:${SERVICECMD}:g'
.in:
${SED} ${SED_RUNDIR} ${SED_DBDIR} ${SED_LIBDIR} ${SED_HOOKDIR} \
- ${SED_SYS} ${SED_SCRIPT} \
+ ${SED_SYS} ${SED_SCRIPT} ${SED_DATADIR} \
${SED_SERVICEEXISTS} ${SED_SERVICECMD} ${SED_SERVICESTATUS} \
$< > $@
Hooks
-----
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 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.
+By default we install 01-test, 02-dump, 10-mtu, 20-resolv.conf and 30-hostname.
+The other hooks, 10-wpa_supplicant, 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+= 20-resolv.conf
SCRIPTS+= 30-hostname
SCRIPTS+= ${HOOKSCRIPTS}
# Some hooks should not be installed by default
FILESDIR= ${DATADIR}/dhcpcd/hooks
-FILES= 15-timezone
+FILES= 10-wpa_supplicant
+FILES+= 15-timezone
FILES+= 29-lookup-hostname
50-ypbind: 50-ypbind.in
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd December 4, 2015
+.Dd December 22, 2015
.Dt DHCPCD 8
.Os
.Sh NAME
The default installation supplies the scripts
.Pa 01-test ,
.Pa 02-dump ,
-.Pa 10-wpa_supplicant ,
-.Pa 15-timezone ,
.Pa 20-resolv.conf
and
.Pa 30-hostname .
for details on how these scripts work.
.Nm
currently ignores the exit code of the script.
+.Pp
+More scripts are supplied in
+.Pa @DATADIR@/dhcpcd/hooks
+and need to be copied to
+.Pa @HOOKDIR@
+if you intend to use them.
+For example, you could install
+.Pa 10-wpa_supplicant
+so that
+.Nm
+can ensure that
+.Xr wpa_supplicant 8
+is always running on a hot-plugged wireless interface.
.Ss Fine tuning
You can fine-tune the behaviour of
.Nm
is not running, then it starts up as normal.
This may also cause
.Xr wpa_supplicant 8
-to reload its configuration for each interface as well.
+to reload its configuration for each interface as well if the
+relevant hook script has been installed.
.It Fl N , Fl Fl renew Op Ar interface
Notifies
.Nm
.Fl n , Fl Fl rebind
option above, the configuration for
.Nm
-and
-.Xr wpa_supplicant 8
is not reloaded.
.It Fl o , Fl Fl option Ar option
Request the DHCP