Automatic per-site configuration

Paul Schenkeveld <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile,gmane.os.freebsd.devel.hackers
Message-ID <[email protected]>
Hi,

There must be many others like me who carry a laptop from one site to
another every week.  Currently I have to work at four different sites.

I'd like my FreeBSD 8.2 laptop to automatically start stuff depending
on where I boot it and also my personal login environment depends on
where I am (PRINTER setting in .profile, clients to automatically start
and DISPLAY setting in .xsession, key bindings in .ctwmrc etc.)

Until recently I could look at the fully qualified hostname I got from
DHCP as all DHCP servers gave me a usable hostname but now I also have
to work at various sites where DHCP does not give me a hostname at all.

Getting no hostname from DHCP confuses xdm which defaults to "1"
requiring me to switch to another virtual console and manually set the
hostname to "localhost" or something.

The hostname="foo.bar.tld" in rc.conf is absolute, when set the hostname
obtained from DHCP is ignored.

How do other people solve this?  I'd prefer to to be prompted during
boot and during login for the site I want to configure for.

Kind regards,

Paul Schenkeveld
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.