diff --git a/libexec/rc/rc.conf b/libexec/rc/rc.conf index 0709845259e..79bc1f3436e 100644 --- a/libexec/rc/rc.conf +++ b/libexec/rc/rc.conf @@ -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. diff --git a/libexec/rc/rc.d/hostapd b/libexec/rc/rc.d/hostapd index d0c2d88f2ff..a0d9d4d3ac7 100755 --- a/libexec/rc/rc.d/hostapd +++ b/libexec/rc/rc.d/hostapd @@ -24,6 +24,7 @@ else pidfile="/var/run/${name}-${ifn}.pid" fi +command=${hostapd_program} command_args="-P ${pidfile} -B ${conf_file}" required_files="${conf_file}" required_modules="wlan_xauth wlan_wep wlan_tkip wlan_ccmp"