From owner-freebsd-questions Fri Feb 20 07:06:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA01879 for freebsd-questions-outgoing; Fri, 20 Feb 1998 07:06:12 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA01773 for ; Fri, 20 Feb 1998 07:05:31 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.org (8.8.7/8.8.7) with ESMTP id OAA08374; Fri, 20 Feb 1998 14:45:49 GMT (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199802201445.OAA08374@awfulhak.org> X-Mailer: exmh version 2.0.1 12/23/97 To: Tim Tsai cc: Doug White , freebsd-questions@FreeBSD.ORG Subject: Re: /etc/rc.network problems/questions In-reply-to: Your message of "Thu, 19 Feb 1998 21:15:32 CST." <19980219211532.58645@futuresouth.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 20 Feb 1998 14:45:48 +0000 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > in /etc/rc.network we have these lines: > > > > > > for ifn in ${network_interfaces}; do > > > if [ -e /etc/start_if.${ifn} ]; then > > > . /etc/start_if.${ifn} ${ifn} > > > fi > > > > > > but to my best knowlege, the "." builtin doesn't take parameters. > > > > > > Why am I missing? > > > > > > if I create a start_if.fxp0 file, for example, that looks like this: > > > > > > ifconfig $1 inet 192.168.1.1 netmask 255.255.255.255 alias > > > > > > the $1 expands to nothing. > > > > > > What am I missing? Is everybody else hardcoding the interface name into > > > start_if.ifn? Na. Everyone else is using ifconfig_fxp0_alias0="inet 192.168.1.1 netmask 0xffffffff" in /etc/rc.conf :-) > > ifconfig lines tend to be system-specific, so why would you bother? > > Well, for one thing it's wrong. Aren't FreeBSD folks the ones who > nitpicks on every detail??!! :-) > > Mostly I bothered because it was there. Also, it'd be a tad easier if > I change the ethernet interface (most of our machines have a fxp0 and > then an ed0 interface as backup). I've just removed the argument. As a matter of interest, both bash and zsh pass the arguments correctly. /bin/sh (ash) doesn't :-( > Tim -- Brian , , Don't _EVER_ lose your sense of humour.... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message