Re: Network interface modules keeps re-loading

From: Fredrik Lindberg <fli_at_FreeBSD.org>
Date: Tue, 22 May 2007 11:47:18 +0200
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




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
_at__at_ -265,7 +265,7 _at__at_
 #	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
Received on Tue May 22 2007 - 07:47:26 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:10 UTC