Subject: Re: do you like or hate this enhancement
To: Daniel Carosone <dan@anarres.mame.mu.oz.au>
From: Perry E. Metzger <perry@piermont.com>
List: current-users
Date: 08/18/1995 08:38:19
Daniel Carosone writes:
> Some way to do this is needed, and the implementation offered by Perry
> works well enough.  Aesthetically, I think I would prefer an
> enhancement to the syntax of /etc/hostname.X to allow this. Something
> like this would be nice, with various lines being optional:

I often find that parsing these things gets gross in shell, and we
don't get to use perl or such in /etc/rc and friends (perhaps a good
thing!) Given this, I'd like to see how ugly an implementation of what you
propose ends up looking. Perhaps you could provide one? Remember that
the thing also has to handle routing the interface aliases and the
like, so it is going to have to recognise which lines contain
addresses that need to be routed to localhost.

Just to understand, I was trying to provide the functionality in a
minimally intrusive way -- it seemed like a very simple way to add the
functionality, and the functionality seems to be of common use these
days.

> They could just be lines that get tacked onto the end of
> "/sbin/ifconfig <if> " in a loop, in which case the syntax above
> changes slightly.

It can't be that simple, unfortunately, because of the need to do
things like setting up routing.

Perry