xref: /netbsd/etc/rc.d/wpa_supplicant (revision 6550d01e)
1#!/bin/sh
2#
3# $NetBSD: wpa_supplicant,v 1.3 2009/09/30 18:17:22 apb Exp $
4#
5
6# PROVIDE: wpa_supplicant
7# REQUIRE: network mountcritlocal
8# BEFORE:  NETWORKING dhclient
9#
10#	We need to run a command that resides in /usr/sbin, and the
11#	/usr file system is traditionally mounted by mountcritremote.
12#	However, we cannot depend on mountcritremote, because that
13#	would introduce a circular dependency.	Therefore, if you need
14#	wpa_supplicant to start during the boot process, you should
15#	ensure that the /usr file system is mounted by mountcritlocal,
16#	not by mountcritremote.
17
18$_rc_subr_loaded . /etc/rc.subr
19
20name="wpa_supplicant"
21rcvar=$name
22command="/usr/sbin/wpa_supplicant"
23reload_command="/usr/sbin/wpa_cli reconfigure"
24extra_commands="reload"
25
26load_rc_config $name
27run_rc_command "$1"
28