Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jun 99 19:22:16 -0400
From:      Kent Hauser <kent@tfd.com>
To:        freebsd-mobile@FreeBSD.ORG, jrs@enteract.com
Subject:   Re:  Two Locations
Message-ID:  <9906102322.AA21510@sneezy.tfd.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9906102322.AA21510>