From owner-freebsd-audit Wed May 8 12: 2:20 2002 Delivered-To: freebsd-audit@freebsd.org Received: from dhcp117.mvista.com (gateway-1237.mvista.com [12.44.186.158]) by hub.freebsd.org (Postfix) with ESMTP id 2F77B37B404; Wed, 8 May 2002 12:02:12 -0700 (PDT) Received: (from nbliss@localhost) by dhcp117.mvista.com (8.11.6/8.11.6) id g48Ixu732700; Wed, 8 May 2002 11:59:56 -0700 Date: Wed, 8 May 2002 11:59:56 -0700 From: Neil Bliss To: freebsd-gnats-submit@freebsd.org Cc: neil@darlow.co.uk, audit@freebsd.org, nbliss@mvista.com Subject: Re: conf/30441: Can't set interface arguments for dhcp configured interfaces Message-ID: <20020508115956.I12891@dhcp117.mvista.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hey folks, I just ran into this problem, and here's my proposed fix for it. Feel free to incorporate it, or not. =) Index: rc.network =================================================================== RCS file: /home/ncvs/src/etc/rc.network,v retrieving revision 1.134 diff -c -r1.134 rc.network *** rc.network 2002/04/11 22:06:27 1.134 --- rc.network 2002/05/08 19:01:20 *************** *** 211,219 **** case ${ifconfig_args} in '') ;; ! [Dd][Hh][Cc][Pp]) # DHCP inits are done all in one go below dhcp_interfaces="$dhcp_interfaces $ifn" eval showstat_$ifn=1 ;; *) --- 211,225 ---- case ${ifconfig_args} in '') ;; ! [Dd][Hh][Cc][Pp]) # DHCP inits are done all in one go below dhcp_interfaces="$dhcp_interfaces $ifn" eval showstat_$ifn=1 ;; *) --- 211,225 ---- case ${ifconfig_args} in '') ;; ! *[Dd][Hh][Cc][Pp]*) # DHCP inits are done all in one go below dhcp_interfaces="$dhcp_interfaces $ifn" + # eat the DHCP token, and apply any other args. + ifconfig_args=`echo $ifconfig_args \ + | sed s/[Dd][Hh][Cc][Pp]//` + if [ -n "${ifconfig_args}" ]; then + ifconfig ${ifn} ${ifconfig_args} + fi eval showstat_$ifn=1 ;; *) later, Neil -- Neil Bliss - Monta Vista Technical Support Yow!-Zippy-says: I once decorated my apartment entirely in ten foot salad forks!! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message