wpa_supplicant revision 147682
1#!/bin/sh 2# 3# $FreeBSD: head/etc/rc.d/wpa_supplicant 147682 2005-06-30 04:52:47Z brooks $ 4# 5 6# PROVIDE: wpa_supplicant 7# REQUIRE: mountcritremote 8# KEYWORD: nojail nostart 9 10. /etc/rc.subr 11. /etc/network.subr 12 13name="wpa_supplicant" 14rcvar= 15command="/usr/sbin/${name}" 16conf_file="/etc/wpa_supplicant.conf" 17 18ifn="$2" 19if [ -z "$ifn" ]; then 20 return 1 21fi 22 23load_rc_config $name 24 25pid_file="/var/run/${name}/${ifn}.pid" 26command_args="-B -q -i $ifn -P $pid_file -c $conf_file" 27required_files=$conf_file 28 29run_rc_command "$1" 30