wpa_supplicant (178022) | wpa_supplicant (178356) |
---|---|
1#!/bin/sh 2# | 1#!/bin/sh 2# |
3# $FreeBSD: head/etc/rc.d/wpa_supplicant 178022 2008-04-08 23:12:15Z sam $ | 3# $FreeBSD: head/etc/rc.d/wpa_supplicant 178356 2008-04-20 20:37:21Z sam $ |
4# 5 6# PROVIDE: wpa_supplicant 7# REQUIRE: mountcritremote 8# KEYWORD: nojail nostart 9 10. /etc/rc.subr 11. /etc/network.subr --- 13 unchanged lines hidden (view full) --- 25 *media:?Ethernet*) 26 echo Ethernet 27 ;; 28 esac 29 done` 30 test "$media" = "Ethernet" 31} 32 | 4# 5 6# PROVIDE: wpa_supplicant 7# REQUIRE: mountcritremote 8# KEYWORD: nojail nostart 9 10. /etc/rc.subr 11. /etc/network.subr --- 13 unchanged lines hidden (view full) --- 25 *media:?Ethernet*) 26 echo Ethernet 27 ;; 28 esac 29 done` 30 test "$media" = "Ethernet" 31} 32 |
33case ${ifn} in 34ndis*) | 33is_ndis_interface() 34{ 35 case `sysctl -n net.wlan.${1#wlan}.%parent 2>/dev/null` in 36 ndis*) true ;; 37 *) false ;; 38 esac 39} 40 41if is_wired_interface ${ifn} ; then 42 driver="wired" 43elif is_ndis_interface ${ifn} ; then |
35 driver="ndis" | 44 driver="ndis" |
36 ;; 37*) 38 if is_wired_interface ${ifn} ; then 39 driver="wired" 40 else 41 driver="bsd" 42 fi 43 ;; 44esac | 45else 46 driver="bsd" 47fi |
45 46load_rc_config $name 47 48command=${wpa_supplicant_program} 49conf_file=${wpa_supplicant_conf_file} 50pidfile="/var/run/${name}/${ifn}.pid" 51command_args="-B -i $ifn -c $conf_file -D $driver -P $pidfile" 52required_files=$conf_file | 48 49load_rc_config $name 50 51command=${wpa_supplicant_program} 52conf_file=${wpa_supplicant_conf_file} 53pidfile="/var/run/${name}/${ifn}.pid" 54command_args="-B -i $ifn -c $conf_file -D $driver -P $pidfile" 55required_files=$conf_file |
56required_modules="wlan_wep wlan_tkip wlan_ccmp" |
|
53 54run_rc_command "$1" | 57 58run_rc_command "$1" |