From owner-freebsd-bugs Wed May 8 12:10:44 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 235FD37B408 for ; Wed, 8 May 2002 12:10:04 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g48JA4963137; Wed, 8 May 2002 12:10:04 -0700 (PDT) (envelope-from gnats) Date: Wed, 8 May 2002 12:10:04 -0700 (PDT) Message-Id: <200205081910.g48JA4963137@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Neil Bliss Subject: Re: conf/30441: Can't set interface arguments for dhcp configured interfaces Reply-To: Neil Bliss Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR conf/30441; it has been noted by GNATS. 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 Date: Wed, 8 May 2002 11:59:56 -0700 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-bugs" in the body of the message