wpa_supplicant revision 1.3
11.1Srpaulo#!/bin/sh
21.1Srpaulo#
31.3Sapb# $NetBSD: wpa_supplicant,v 1.3 2009/09/30 18:17:22 apb Exp $
41.1Srpaulo#
51.1Srpaulo
61.1Srpaulo# PROVIDE: wpa_supplicant
71.1Srpaulo# REQUIRE: network mountcritlocal
81.1Srpaulo# BEFORE:  NETWORKING dhclient
91.3Sapb#
101.3Sapb#	We need to run a command that resides in /usr/sbin, and the
111.3Sapb#	/usr file system is traditionally mounted by mountcritremote.
121.3Sapb#	However, we cannot depend on mountcritremote, because that
131.3Sapb#	would introduce a circular dependency.	Therefore, if you need
141.3Sapb#	wpa_supplicant to start during the boot process, you should
151.3Sapb#	ensure that the /usr file system is mounted by mountcritlocal,
161.3Sapb#	not by mountcritremote.
171.1Srpaulo
181.1Srpaulo$_rc_subr_loaded . /etc/rc.subr
191.1Srpaulo
201.1Srpauloname="wpa_supplicant"
211.1Srpaulorcvar=$name
221.1Srpaulocommand="/usr/sbin/wpa_supplicant"
231.2Sabsreload_command="/usr/sbin/wpa_cli reconfigure"
241.2Sabsextra_commands="reload"
251.1Srpaulo
261.1Srpauloload_rc_config $name
271.1Srpaulorun_rc_command "$1"
28