3 # $FreeBSD: src/etc/rc.d/wpa_supplicant,v 1.2 2005/10/19 22:26:47 jkim Exp $
6 # PROVIDE: wpa_supplicant
20 if [ -z "${ifn}" ]; then
21 # got no interface, run single daemon for multiple matching interfaces
22 # but ensure the feature is supported first
23 case `${wpa_supplicant_program} -h 2>/dev/null` in
24 *-M*) match_iface=1 ;;
27 flags="-M -i wlan* -D bsd -P /var/run/${name}.pid ${wpa_supplicant_flags}"
29 # got particular interface, possibly called from ifconfig_up() in network.subr
30 # force "enable" to ensure run_rc_command below runs daemon for the interface
31 wpa_supplicant_enable="YES"
32 if is_wired_interface ${ifn} ; then
37 flags="-i ${ifn} -D ${driver} -P /var/run/${name}/${ifn}.pid ${wpa_supplicant_flags}"
40 flags="-B -s ${flags}"