PERFORCE change 140097 for review
Andrew Thompson
thompsa at FreeBSD.org
Wed Apr 16 03:51:28 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=140097
Change 140097 by thompsa at thompsa_burger on 2008/04/16 03:50:53
Add a test for the vap parent being a ndis interface and use the
appropriate wpa_supplicant driver.
Affected files ...
.. //depot/projects/vap/etc/rc.d/wpa_supplicant#8 edit
Differences ...
==== //depot/projects/vap/etc/rc.d/wpa_supplicant#8 (text+ko) ====
@@ -30,18 +30,21 @@
test "$media" = "Ethernet"
}
-case ${ifn} in
-ndis*)
+is_ndis_interface()
+{
+ case `sysctl -n net.wlan.${1#wlan}.%parent 2>/dev/null` in
+ ndis*) true ;;
+ *) false ;;
+ esac
+}
+
+if is_wired_interface ${ifn} ; then
+ driver="wired"
+elif is_ndis_interface ${ifn} ; then
driver="ndis"
- ;;
-*)
- if is_wired_interface ${ifn} ; then
- driver="wired"
- else
- driver="bsd"
- fi
- ;;
-esac
+else
+ driver="bsd"
+fi
load_rc_config $name
More information about the p4-projects
mailing list