mirror of
https://github.com/rsmarples/dhcpcd.git
synced 2024-11-23 18:14:09 +08:00
Grudgingly accede to the vocal minority that dhcpcd should not attempt to
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.
This commit is contained in:
parent
b2e2917772
commit
9ac8f9f811
3
Makefile
3
Makefile
@ -41,6 +41,7 @@ SUBDIRS= dhcpcd-hooks ${MKDIRS}
|
||||
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'
|
||||
@ -67,7 +68,7 @@ CLEANFILES+= *.tar.xz
|
||||
|
||||
.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} \
|
||||
$< > $@
|
||||
|
||||
|
9
README
9
README
@ -120,11 +120,10 @@ gmake-4 or any BSD make.
|
||||
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
|
||||
|
@ -4,13 +4,14 @@ include ${TOP}/iconfig.mk
|
||||
|
||||
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
|
||||
|
22
dhcpcd.8.in
22
dhcpcd.8.in
@ -22,7 +22,7 @@
|
||||
.\" 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
|
||||
@ -205,8 +205,6 @@ in a lexical order.
|
||||
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 .
|
||||
@ -218,6 +216,19 @@ See
|
||||
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
|
||||
@ -377,7 +388,8 @@ If
|
||||
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
|
||||
@ -391,8 +403,6 @@ Unlike the
|
||||
.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
|
||||
|
Loading…
Reference in New Issue
Block a user