Network interface modules keeps re-loading

Fredrik Lindberg fli at FreeBSD.org
Tue May 22 09:47:26 UTC 2007


Andrew Thompson wrote:
> 
> Here is a patch to do this, i'll commit it unless there are any
> objections.
> 
> 

Seems fine, about the same thing I had in mind.
Also, network.subr needs to be modified to use this, I believe it's only
necessary to change ifexists(). That would leave module loading intact
in thinks like rc.d/netif start foo0 (if that's what people want?)

Fredrik



-------------- next part --------------
Index: network.subr
===================================================================
RCS file: /home/ncvs/src/etc/network.subr,v
retrieving revision 1.179
diff -u -r1.179 network.subr
--- network.subr	29 Mar 2007 21:42:19 -0000	1.179
+++ network.subr	22 May 2007 09:44:18 -0000
@@ -265,7 +265,7 @@
 #	Returns 0 if the interface exists and 1 otherwise.
 ifexists()
 {
-	ifconfig $1 > /dev/null 2>&1
+	ifconfig -n $1 > /dev/null 2>&1
 }
 
 # ipv4_up if


More information about the freebsd-current mailing list