1#!/bin/sh 2# 3# 4 5# PROVIDE: wpa_supplicant 6# REQUIRE: mountcritremote 7# KEYWORD: nojail nostart 8 9. /etc/rc.subr 10. /etc/network.subr 11 12name="wpa_supplicant" 13desc="WPA/802.11i Supplicant for wireless network devices" 14rcvar= 15 16ifn="$2" 17if [ -z "$ifn" ]; then 18 return 1 19fi 20 21if is_wired_interface ${ifn} ; then 22 driver="wired" 23else 24 driver="bsd" 25fi 26 27load_rc_config $name 28 29command=${wpa_supplicant_program} 30conf_file=${wpa_supplicant_conf_file} 31pidfile="/var/run/${name}/${ifn}.pid" 32command_args="-B -i $ifn -c $conf_file -D $driver -P $pidfile" 33required_files=$conf_file 34required_modules="wlan_wep wlan_tkip wlan_ccmp" 35 36# doesn't make sense to run in a svcj: nojail keyword 37wpa_supplicant_svcj="NO" 38 39run_rc_command "$1" 40