From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GQ2vH-0000k7-1x for garchives@archives.gentoo.org; Wed, 20 Sep 2006 14:19:35 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k8KEIThT032126; Wed, 20 Sep 2006 14:18:29 GMT Received: from desiato.digimed.co.uk (82-69-83-178.dsl.in-addr.zen.co.uk [82.69.83.178]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k8KEDlgK017755 for ; Wed, 20 Sep 2006 14:13:47 GMT Received: from hactar.digimed.co.uk (hactar.digimed.co.uk [192.168.1.2]) by desiato.digimed.co.uk (Postfix) with ESMTP id 2EC7B63830 for ; Wed, 20 Sep 2006 15:13:47 +0100 (BST) Date: Wed, 20 Sep 2006 15:13:40 +0100 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Can the new baselayout handle multiple networks seamlessly? Message-ID: <20060920151340.4a643caf@hactar.digimed.co.uk> In-Reply-To: <20060920143509.321203ab@krikkit.digimed.co.uk> References: <1158706691.19961.17.camel@bunyip> <20060920010521.40cf553f@hactar.digimed.co.uk> <1158716891.19961.25.camel@localhost> <20060920084524.1004ea78@hactar.digimed.co.uk> <1158754885.14008.33.camel@rattus> <20060920143509.321203ab@krikkit.digimed.co.uk> Organization: Digital Media Production X-Mailer: Sylpheed-Claws 2.5.0-rc3 (GTK+ 2.10.3; x86_64-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_KfXHr1L08/vRMk/9Fdvh4lA"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Archives-Salt: efd8f4c7-169e-4cbb-a65c-b8517b98aae7 X-Archives-Hash: ade30b1977c588e621051d34e6e74024 --Sig_KfXHr1L08/vRMk/9Fdvh4lA Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed, 20 Sep 2006 14:35:09 +0100, Neil Bothwick wrote: > I haven't tried using it for this, but I wonder if RC_USE_CONFIG_PROFILE > would help. See /etc/conf.d/rc for details but basically you set up > different configs for different runlevels, so you could have a different > runlevel for each situation, but make the actual runlevel directories > symlinks to default. Selecting the runlevel on rebooting would certainly > pick up the appropriate config, you'd have to try it to see what happens > when switching runlevels while running. I've run a couple of tests now, using different /etc/conf.d/net.runlevel files. Switching runlevels on the fly doesn't cause the new configs to be loaded, but restarting the network afterwards does. I expect this is fine for your needs, as you are unlikely to have the network running while between locations. Even if you are, you only need to do rc newrunlevel /etc/init.d/net.eth0 restart to switch over. The VPN and other stuff you need to run is easily handled in the postup() function of the relevant net.runlevel file. --=20 Neil Bothwick If this were an actual tagline, it would be funny. --Sig_KfXHr1L08/vRMk/9Fdvh4lA Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFEUyaum4al0N1GQMRAv1lAJ0czlBJGIjC62zajua/6S6pHaZdywCeKdec Y3Lbihsby5cTEboHgNcQXr8= =+hsT -----END PGP SIGNATURE----- --Sig_KfXHr1L08/vRMk/9Fdvh4lA-- -- gentoo-user@gentoo.org mailing list