Date: Fri, 20 Feb 1998 14:45:48 +0000 From: Brian Somers <brian@Awfulhak.org> To: Tim Tsai <tim@futuresouth.com> Cc: Doug White <dwhite@resnet.uoregon.edu>, freebsd-questions@FreeBSD.ORG Subject: Re: /etc/rc.network problems/questions Message-ID: <199802201445.OAA08374@awfulhak.org> In-Reply-To: Your message of "Thu, 19 Feb 1998 21:15:32 CST." <19980219211532.58645@futuresouth.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> > > 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 <brian@Awfulhak.org>, <brian@FreeBSD.org>, <brian@OpenBSD.org>
<http://www.Awfulhak.org>
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802201445.OAA08374>
