From owner-freebsd-mobile Thu Jun 10 16:18:34 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rtp.tfd.com (rtp.tfd.com [198.79.53.206]) by hub.freebsd.org (Postfix) with ESMTP id AA32E14F28 for ; Thu, 10 Jun 1999 16:18:31 -0700 (PDT) (envelope-from kent@tfd.com) Received: from sneezy.tfd.com (sneezy.tfd.com [10.9.200.10]) by rtp.tfd.com (8.8.6/8.7.3) with SMTP id TAA21907; Thu, 10 Jun 1999 19:19:12 -0400 (EDT) Received: by sneezy.tfd.com id AA21510 (5.65b/IDA-1.4.3 for jrs@enteract.com); Thu, 10 Jun 99 19:22:16 -0400 Date: Thu, 10 Jun 99 19:22:16 -0400 From: Kent Hauser Message-Id: <9906102322.AA21510@sneezy.tfd.com> To: freebsd-mobile@FreeBSD.ORG, jrs@enteract.com Subject: Re: Two Locations Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I plug my laptop into several ethernets. My solution is the symlink. I create directories: /etc/conf.{every,where,i,go} and then set another symlink in etc: ln -s conf.{where-i-am} /etc/site Then the real trick: all of the approprite files are copied & modified in the appropriate /etc/conf.* directory. Mine include rc.conf, resolv.conf, and localtime. And finally, all of these files are symlinked thru the site symlink in directory. Example follows: % cd /etc % mkdir conf.home % ln -s conf.home site % mv rc.conf localtime resolv.conf site % ln -s site/rc.conf . % ln -s site/localtime . % ln -s site/resolv.conf . Then copy the files in conf.home to conf.{where,ever} & modify them appropriately. Remake the site symlink & reboot. Anyway, works for me. Kent To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message