Subject: Re: Feature idea...
To: Peter Seebach <seebs@plethora.net>
From: Michael Graff <explorer@flame.org>
List: current-users
Date: 02/02/1999 11:25:20
seebs@plethora.net (Peter Seebach) writes:

> Proposal:  'etcswitch'.  There would be directories /etc/switch/foo, and
> during boot, if 'etcswitch' is enabled, *before* normal config files are
> read, you get a little prompt on /etc/switch/*, letting you pick a
> configuration.  (Before it nukes your old files, it presumably copies them,
> and you might have a few special ones like /etc/switch/previous.)

Sounds like a good idea to me.  I have the same situation, and while I
run DHCP at most places so most things are right, I always find I want
to swap in other things, like ip filtering based on location.

I'd implement it as a simple replacement system, and perhaps have a
way to take a "snapshot" of the current config?  That is, set the
machine up for location foo, and say

	etcswitch -s foo

and it'll look at /etc/ifconfig.*, etc and store them away for later
use.  Of course, which files are saved should be in a config file, and
there should probably be a way to run a script (if present) on switch
so any strange things can be accounted for.

--Michael