From owner-freebsd-stable Thu Nov 18 8:15:11 1999 Delivered-To: freebsd-stable@freebsd.org Received: from pan.ch.intel.com (pan.ch.intel.com [143.182.246.24]) by hub.freebsd.org (Postfix) with ESMTP id 3B3F615433 for ; Thu, 18 Nov 1999 08:14:56 -0800 (PST) (envelope-from jreynold@sedona.ch.intel.com) Received: from sedona.intel.com (sedona.ch.intel.com [143.182.218.21]) by pan.ch.intel.com (8.9.1a+p1/8.9.1/d: relay.m4,v 1.11 1999/11/10 17:27:15 spurcell Exp $) with ESMTP id JAA29069; Thu, 18 Nov 1999 09:14:54 -0700 (MST) Received: from hip186.ch.intel.com (hip186.ch.intel.com [143.182.225.68]) by sedona.intel.com (8.9.1a/8.9.1/d: sendmail.cf,v 1.8 1999/04/16 15:25:49 steved Exp steved $) with ESMTP id JAA13665; Thu, 18 Nov 1999 09:14:53 -0700 (MST) X-Envelope-From: jreynold@sedona.ch.intel.com Received: (from jreynold@localhost) by hip186.ch.intel.com (8.9.1a/8.9.1/d: client.m4,v 1.3 1998/09/29 16:36:11 sedayao Exp sedayao $) id LAA23229; Thu, 18 Nov 1999 11:15:18 -0500 (EST) From: John Reynolds~ MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14388.9749.806244.632721@hip186.ch.intel.com> Date: Thu, 18 Nov 1999 09:15:17 -0700 (MST) To: Tony Finch Cc: stable@freebsd.org Subject: Re: defaultrouter variable in /etc/rc.conf -- Used? In-Reply-To: References: <14388.6585.781834.681200@hip186.ch.intel.com> X-Mailer: VM 6.75 under Emacs 19.34.1 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [ On Thursday, November 18, Tony Finch wrote: ] > > You didn't look at the for loop closely enough. apparently not. > In the for loop that you quoted above, each name is taken from the > $static_routes variable and put in $i, then the corresponding > $route_name variable is located with the eval command and its value is > copied to the $route_args variable whose is passed as the arguments to > `route add`. > > The "default" in $static_routes is just another name that gets > assigned to $i, so the eval command becomes `route_args=$route_default` > which causes the next command to be `route add default $defaultrouter` HMMMMM. OK. I see how this was supposed to work then. Hmmmm. OK. Well, I will go back to the stock rc.network file and check things out again. What you say makes sense ... don't know why things "didn't work" (don't have the output of the 'failed' initialization ... I just know it didn't work). Thanks for the explanation!!! -Jr -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= | John Reynolds CEG, CCE, Next Generation Flows, HLA | | Intel Corporation MS: CH6-210 Phone: 480-554-9092 pgr: 868-6512 | | jreynold@sedona.ch.intel.com http://www-aec.ch.intel.com/~jreynold/ | =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message