Allow the hostapd program to be specified. This allows users to use

hostapd from ports instead of the one in base. The default is the hostapd
in base.

PR:		238571
MFC after:	1 week
This commit is contained in:
cy 2019-06-17 20:11:02 +00:00
parent 23ab0978e0
commit 255c8657d8
2 changed files with 2 additions and 1 deletions

View File

@ -275,6 +275,7 @@ ppp_user="root" # Which user to run ppp as
# profile3 uses default ppp_mode and ppp_nat
### Network daemon (miscellaneous) ###
hostapd_program="/usr/sbin/hostapd"
hostapd_enable="NO" # Run hostap daemon.
syslogd_enable="YES" # Run syslog daemon (or NO).
syslogd_program="/usr/sbin/syslogd" # path to syslogd, if you want a different one.

View File

@ -11,7 +11,7 @@
name="hostapd"
desc="Authenticator for IEEE 802.11 networks"
command="/usr/sbin/${name}"
command=${hostapd_program}
ifn="$2"
if [ -z "$ifn" ]; then