Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Sep 2006 12:40:11 -0500
From:      David Kelly <dkelly@hiwaay.net>
To:        FreeBSD-Questions@FreeBSD.org
Subject:   Re: how to add flags to ifconfig at boot
Message-ID:  <20060918174011.GB31815@Grumpy.DynDNS.org>
In-Reply-To: <17678.52102.19408.417476@jerusalem.litteratus.org>
References:  <450BA57A.7000007@intersonic.se> <44ac4x6zkt.fsf@be-well.ilk.org> <20060918145640.GD21877@Grumpy.DynDNS.org> <17678.52102.19408.417476@jerusalem.litteratus.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Sep 18, 2006 at 12:38:30PM -0400, Robert Huff wrote:
> 
> David Kelly writes:
> 
> >  Or if one needs to ifconfig earlier in the startup process then put
> >  one's script in /etc/start_if.em0
> 
> 	It is my understanding (and experience) this only works when
> 
> 	ifconfig_em0=""
> 
> 	in /etc/rc.conf.

True only if your options for ifconfig in rc.conf would clear or
override whatever it is you put in /etc/start_if_em0. As long as its
something that can be done with multiple ifconfigs then all is fine.

For example this works fine in /etc/start_if.xl0:

#!/bin/sh
ifconfig xl0 lladdr 00:01:23:45:67:89

with this in rc.conf:
ifconfig_xl0="DHCP"

-- 
David Kelly N4HHE, dkelly@HiWAAY.net
========================================================================
Whom computers would destroy, they must first drive mad.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060918174011.GB31815>