public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] recipe for managing multiple network/system settings
@ 2007-07-23 19:15 Jeff
  2007-07-23 21:27 ` Neil Bothwick
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff @ 2007-07-23 19:15 UTC (permalink / raw
  To: gentoo-user

Hello,

I know that baselayout can handle certain services, but how do I combine 
that with the need for
various host files, resolve.conf files, gateway, hostname, domainname, 
ESSID, etc. Even default printers would be nice.

I need to support choosing one of several configurations at boot time, 
via grub:
1) home-wireless-dhcp
2) home-wired-dhcp
3) work1-wired
4) work2-wireless-dhcp


I had been using quickswitch/switchto, but now that I have updated my 
Gentoo, it no longer works works.

There must be a "modern" approach for managing multiple configurations 
for laptops! ?

Thanks,
Jeff

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] recipe for managing multiple network/system settings
  2007-07-23 19:15 Jeff
@ 2007-07-23 21:27 ` Neil Bothwick
  0 siblings, 0 replies; 4+ messages in thread
From: Neil Bothwick @ 2007-07-23 21:27 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1612 bytes --]

On Mon, 23 Jul 2007 14:15:42 -0500, Jeff wrote:

> I know that baselayout can handle certain services, but how do I
> combine that with the need for
> various host files, resolve.conf files, gateway, hostname, domainname, 
> ESSID, etc. Even default printers would be nice.
> 
> I need to support choosing one of several configurations at boot time, 
> via grub:
> 1) home-wireless-dhcp
> 2) home-wired-dhcp
> 3) work1-wired
> 4) work2-wireless-dhcp

You can do this by setting RC_USE_CONFIG_PROFILE="yes" in /etc/conf.d/rc
The comment in the same file explains it

# RC_USE_CONFIG_PROFILE allows you to have different /etc/conf.d files 
# based on your runlevel - if a conf.d file for your profile does not exist
# then we try and use the default one.
# To enable runlevel selection at boot, append "softlevel=foobar" to your
# kernel line to change to the foobar runlevel.  Here we would search for
# /etc/conf.d/<service>.foobar config files before trying to use the default
# /etc/conf.d/<service>.
# Note that it is only active if 'softlevel' was specified via the kernel line,
# and it is intended to use for different grub/lilo entries to specify config
# changes for say laptops between home and work, where you would have setup
# 'work' and 'home' runlevels, with /etc/conf.d/*.<runlevel> as needed.

If you need the same services to start in each config, but with different
configurations, you can make the various runlevel directories symlinks
to /etc/runlevels/default.


-- 
Neil Bothwick

Voting Democrat or Republican is like choosing a cabin in the Titanic.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] recipe for managing multiple network/system settings
@ 2007-07-24 13:02 Jeff
  2007-07-24 14:02 ` Neil Bothwick
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff @ 2007-07-24 13:02 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/html, Size: 1967 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] recipe for managing multiple network/system settings
  2007-07-24 13:02 [gentoo-user] recipe for managing multiple network/system settings Jeff
@ 2007-07-24 14:02 ` Neil Bothwick
  0 siblings, 0 replies; 4+ messages in thread
From: Neil Bothwick @ 2007-07-24 14:02 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 624 bytes --]

Hello Jeff,

Please don't post in HTML.

>> You can do this by setting RC_USE_CONFIG_PROFILE="yes"
>> in /etc/conf.d/rc The comment in the same file explains it

>Ah... that flag should help.
> With that I can change some things.BUT... what about config files that
> do not live in /etc/conf.d, like    1. /etc/hosts
> 2. /etc/host.conf    3. /etc/resolv.conf    4. /etc/ntp.conf

Some of these can be configured in /etc/conf.d/net and other files in
here.


-- 
Neil Bothwick

BBS: (n.) a system for connecting computers and exchanging gossip,
     facts, and uninformed speculation under false names.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-07-24 14:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-24 13:02 [gentoo-user] recipe for managing multiple network/system settings Jeff
2007-07-24 14:02 ` Neil Bothwick
  -- strict thread matches above, loose matches on Subject: below --
2007-07-23 19:15 Jeff
2007-07-23 21:27 ` Neil Bothwick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox