diff options
Diffstat (limited to 'etc/rc.d')
-rwxr-xr-x | etc/rc.d/hostapd | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/etc/rc.d/hostapd b/etc/rc.d/hostapd index f65fcde..95d315b 100755 --- a/etc/rc.d/hostapd +++ b/etc/rc.d/hostapd @@ -10,11 +10,18 @@ . /etc/rc.subr name="hostapd" -rcvar="hostapd_enable" command="/usr/sbin/${name}" -conf_file="/etc/${name}.conf" -pidfile="/var/run/${name}.pid" +ifn="$2" +if [ -z "$ifn" ]; then + rcvar="hostapd_enable" + conf_file="/etc/${name}.conf" + pidfile="/var/run/${name}.pid" +else + rcvar= + conf_file="/etc/${name}-${ifn}.conf" + pidfile="/var/run/${name}-${ifn}.pid" +fi command_args="-P ${pidfile} -B ${conf_file}" required_files="${conf_file}" |