Sync usage with man page.
[netbsd-mini2440.git] / etc / rc.d / wpa_supplicant
blob6dd18c9a2d8d2badfe16741ab202c6091563a961
1 #!/bin/sh
3 # $NetBSD: wpa_supplicant,v 1.2 2008/11/17 11:34:04 abs Exp $
6 # PROVIDE: wpa_supplicant
7 # REQUIRE: network mountcritlocal
8 # BEFORE: NETWORKING dhclient
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.
18 $_rc_subr_loaded . /etc/rc.subr
20 name="wpa_supplicant"
21 rcvar=$name
22 command="/usr/sbin/wpa_supplicant"
23 reload_command="/usr/sbin/wpa_cli reconfigure"
24 extra_commands="reload"
26 load_rc_config $name
27 run_rc_command "$1"