1 #!/bin/sh 2 # 3 # $NetBSD: wpa_supplicant,v 1.3.8.1 2013/02/10 20:18:53 riz 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 20 name="wpa_supplicant" 21 rcvar=$name 22 command="/usr/sbin/wpa_supplicant" 23 reload_cmd="/usr/sbin/wpa_cli reconfigure" 24 extra_commands="reload" 25 26 load_rc_config $name 27 run_rc_command "$1" 28