Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Jul 2019 16:43:41 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r349651 - in stable/12/libexec/rc: . rc.d
Message-ID:  <201907031643.x63GhfMe075541@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Wed Jul  3 16:43:40 2019
New Revision: 349651
URL: https://svnweb.freebsd.org/changeset/base/349651

Log:
  MFC r349153:
  
  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

Modified:
  stable/12/libexec/rc/rc.conf
  stable/12/libexec/rc/rc.d/hostapd
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/libexec/rc/rc.conf
==============================================================================
--- stable/12/libexec/rc/rc.conf	Wed Jul  3 16:23:06 2019	(r349650)
+++ stable/12/libexec/rc/rc.conf	Wed Jul  3 16:43:40 2019	(r349651)
@@ -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.

Modified: stable/12/libexec/rc/rc.d/hostapd
==============================================================================
--- stable/12/libexec/rc/rc.d/hostapd	Wed Jul  3 16:23:06 2019	(r349650)
+++ stable/12/libexec/rc/rc.d/hostapd	Wed Jul  3 16:43:40 2019	(r349651)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201907031643.x63GhfMe075541>