From owner-freebsd-mobile Sun Jul 30 20: 6:37 2000 Delivered-To: freebsd-mobile@freebsd.org Received: from frmug.org (frmug-gw.frmug.org [193.56.58.252]) by hub.freebsd.org (Postfix) with ESMTP id 51EB937B97A for ; Sun, 30 Jul 2000 20:06:31 -0700 (PDT) (envelope-from roberto@keltia.freenix.fr) Received: (from uucp@localhost) by frmug.org (8.9.3/frmug-2.7/nospam) with UUCP id FAA05424 for mobile@FreeBSD.ORG; Mon, 31 Jul 2000 05:06:28 +0200 (CEST) (envelope-from roberto@keltia.freenix.fr) Received: by keltia.freenix.fr (Postfix, from userid 101) id 604648895; Mon, 31 Jul 2000 00:48:22 +0200 (CEST) Date: Mon, 31 Jul 2000 00:48:22 +0200 From: Ollivier Robert To: mobile@FreeBSD.ORG Subject: Re: Configuration profiles Message-ID: <20000731004822.A66765@keltia.freenix.fr> Mail-Followup-To: mobile@FreeBSD.ORG References: <200007290000.SAA61365@harmony.village.org> <5lk8e5xhir.fsf@assaris.sics.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from des@flood.ping.uio.no on Sat, Jul 29, 2000 at 02:38:15PM +0200 X-Operating-System: FreeBSD 5.0-CURRENT/ELF AMD-K6/200 & 2x PPro/200 SMP Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org According to Dag-Erling Smorgrav: > As a consultant, I currently need my laptop to handle four different > configurations: I have such a system which use symlinks for various files (/etc/rc.conf, /etc/hosts and such) and a script run to change various parameters (like IP address). /etc/ hosts -> /etc/conf/current/hosts printcap -> /etc/conf/current/printcap rc.conf -> /etc/conf/current/rc.conf ... /etc/conf/ bin/ ifconfig change parameters according to current/params switch-to switch between configurations current -> whichever config is current {eec,home,usenix} eec/ hosts printcap params rc.conf ... home/ hosts printcap params rc.conf ... usenix/ hosts printcap params rc.conf ... Could be improved but it works well for me at the moment. Adding a new configuration is very easy, 'cp -pr home newconfig' and hack newconfig/*. If anyone's interested, just yell :) -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto@keltia.freenix.fr FreeBSD keltia.freenix.fr 5.0-CURRENT #80: Sun Jun 4 22:44:19 CEST 2000 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message