Index: etc/network.subr =================================================================== RCS file: /home/ncvs/src/etc/network.subr,v retrieving revision 1.180 diff -u -r1.180 network.subr --- etc/network.subr 23 May 2007 00:18:44 -0000 1.180 +++ etc/network.subr 21 Jun 2007 15:53:12 -0000 @@ -52,6 +52,11 @@ if [ $_cfg -ne 0 ] ; then ifconfig $1 up fi + case $1 in + ndis*) + /etc/rc.d/ndis_events start + ;; + esac /etc/rc.d/wpa_supplicant start $1 _cfg=0 # XXX: not sure this should count fi @@ -80,6 +85,11 @@ if wpaif $1; then /etc/rc.d/wpa_supplicant stop $1 + case $1 in + ndis*) + /etc/rc.d/ndis_events stop + ;; + esac _cfg=0 fi Index: etc/rc.d/Makefile =================================================================== RCS file: /home/ncvs/src/etc/rc.d/Makefile,v retrieving revision 1.81 diff -u -r1.81 Makefile --- etc/rc.d/Makefile 9 Apr 2007 19:21:27 -0000 1.81 +++ etc/rc.d/Makefile 21 Jun 2007 15:33:26 -0000 @@ -23,7 +23,7 @@ ldconfig local localpkg lpd \ mixer motd mountcritlocal mountcritremote mountlate \ mdconfig mdconfig2 mountd moused mroute6d mrouted msgs \ - named natd netif netoptions \ + named natd netif ndis_events netoptions \ network_ipv6 newsyslog nfsclient nfsd \ nfslocking nfsserver nisdomain nsswitch ntpd ntpdate \ othermta \ Index: etc/rc.d/ndis_events =================================================================== RCS file: etc/rc.d/ndis_events diff -N etc/rc.d/ndis_events --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ etc/rc.d/ndis_events 21 Jun 2007 15:35:44 -0000 @@ -0,0 +1,19 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: ndis_events +# REQUIRE: mountcritremote +# BEFORE: wpa_supplicant +# KEYWORD: nojail nostart + +. /etc/rc.subr +. /etc/network.subr + +name="ndis_events" +rcvar= +command="/usr/sbin/${name}" + +load_rc_config $name +run_rc_command "$1"