Date: Tue, 22 May 2007 11:47:18 +0200 From: Fredrik Lindberg <fli@FreeBSD.org> To: Andrew Thompson <thompsa@FreeBSD.org> Cc: yar@freebsd.org, freebsd-current@freebsd.org Subject: Re: Network interface modules keeps re-loading Message-ID: <4652BC26.3070403@FreeBSD.org> In-Reply-To: <20070521212309.GA4320@heff.fud.org.nz> References: <4645E8A2.1040408@FreeBSD.org> <20070512202004.GA71624@heff.fud.org.nz> <46462CB2.9050008@FreeBSD.org> <20070521212309.GA4320@heff.fud.org.nz>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------090602070001030503020604 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------090602070001030503020604 Content-Type: text/plain; name="network.subr-20070522.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="network.subr-20070522.patch" 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 --------------090602070001030503020604--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4652BC26.3070403>