Changeset View
Changeset View
Standalone View
Standalone View
head/etc/rc.d/hostapd
#!/bin/sh | #!/bin/sh | ||||
# | # | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
# | # | ||||
# PROVIDE: hostapd | # PROVIDE: hostapd | ||||
# REQUIRE: mountcritremote | # REQUIRE: mountcritremote | ||||
# KEYWORD: nojail shutdown | # KEYWORD: nojail shutdown | ||||
. /etc/rc.subr | . /etc/rc.subr | ||||
name="hostapd" | name="hostapd" | ||||
desc="Authenticator for IEEE 802.11 networks" | |||||
command="/usr/sbin/${name}" | command="/usr/sbin/${name}" | ||||
ifn="$2" | ifn="$2" | ||||
if [ -z "$ifn" ]; then | if [ -z "$ifn" ]; then | ||||
rcvar="hostapd_enable" | rcvar="hostapd_enable" | ||||
conf_file="/etc/${name}.conf" | conf_file="/etc/${name}.conf" | ||||
pidfile="/var/run/${name}.pid" | pidfile="/var/run/${name}.pid" | ||||
else | else | ||||
Show All 12 Lines |