f1c95757e8
the -B flag, so always prepend it to $rc_flags.
37 lines
986 B
Bash
37 lines
986 B
Bash
#!/bin/sh
|
|
#
|
|
# $NetBSD: wpa_supplicant,v 1.6 2015/01/22 19:50:21 jmcneill Exp $
|
|
#
|
|
|
|
# PROVIDE: wpa_supplicant
|
|
# REQUIRE: network mountcritlocal
|
|
# BEFORE: NETWORKING dhclient
|
|
#
|
|
# We need to run a command that resides in /usr/sbin, and the
|
|
# /usr file system is traditionally mounted by mountcritremote.
|
|
# However, we cannot depend on mountcritremote, because that
|
|
# would introduce a circular dependency. Therefore, if you need
|
|
# wpa_supplicant to start during the boot process, you should
|
|
# ensure that the /usr file system is mounted by mountcritlocal,
|
|
# not by mountcritremote.
|
|
|
|
$_rc_subr_loaded . /etc/rc.subr
|
|
|
|
name="wpa_supplicant"
|
|
rcvar=$name
|
|
command="/usr/sbin/wpa_supplicant"
|
|
reload_cmd="/usr/sbin/wpa_cli reconfigure"
|
|
extra_commands="reload"
|
|
start_precmd="wpa_supplicant_precmd"
|
|
|
|
wpa_supplicant_precmd()
|
|
{
|
|
if [ ! -d /var/run/wpa_supplicant ]; then
|
|
mkdir -p -m 755 /var/run/wpa_supplicant
|
|
fi
|
|
rc_flags="-B $rc_flags"
|
|
}
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|