17407ba288
interface's ifconfig_<ifn> entry in /etc/rc.conf. Approved by: re (network interface startup blanket)
30 lines
448 B
Bash
30 lines
448 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: wpa_supplicant
|
|
# REQUIRE: mountcritremote
|
|
# KEYWORD: nojail nostart
|
|
|
|
. /etc/rc.subr
|
|
. /etc/network.subr
|
|
|
|
name="wpa_supplicant"
|
|
rcvar=
|
|
command="/usr/sbin/${name}"
|
|
conf_file="/etc/wpa_supplicant.conf"
|
|
|
|
ifn="$2"
|
|
if [ -z "$ifn" ]; then
|
|
return 1
|
|
fi
|
|
|
|
load_rc_config $name
|
|
|
|
pid_file="/var/run/${name}/${ifn}.pid"
|
|
command_args="-B -q -i $ifn -P $pid_file -c $conf_file"
|
|
required_files=$conf_file
|
|
|
|
run_rc_command "$1"
|