1 |
On 9/20/06, Neil Bothwick <neil@××××××××××.uk> wrote: |
2 |
> On Wed, 20 Sep 2006 14:35:09 +0100, Neil Bothwick wrote: |
3 |
> |
4 |
> > I haven't tried using it for this, but I wonder if RC_USE_CONFIG_PROFILE |
5 |
> > would help. See /etc/conf.d/rc for details but basically you set up |
6 |
> > different configs for different runlevels, so you could have a different |
7 |
> > runlevel for each situation, but make the actual runlevel directories |
8 |
> > symlinks to default. Selecting the runlevel on rebooting would certainly |
9 |
> > pick up the appropriate config, you'd have to try it to see what happens |
10 |
> > when switching runlevels while running. |
11 |
> |
12 |
|
13 |
Have you checked out net-misc/netprofiles-ims? I haven't, but it looks |
14 |
promising (it's only keyworded for x86 currently, dunno why, dunno |
15 |
what platform you're running). |
16 |
|
17 |
-James |
18 |
|
19 |
|
20 |
|
21 |
> I've run a couple of tests now, using different /etc/conf.d/net.runlevel |
22 |
> files. Switching runlevels on the fly doesn't cause the new configs to be |
23 |
> loaded, but restarting the network afterwards does. I expect this is fine |
24 |
> for your needs, as you are unlikely to have the network running while |
25 |
> between locations. Even if you are, you only need to do |
26 |
> |
27 |
> rc newrunlevel |
28 |
> /etc/init.d/net.eth0 restart |
29 |
> |
30 |
> to switch over. The VPN and other stuff you need to run is easily handled |
31 |
> in the postup() function of the relevant net.runlevel file. |
32 |
> |
33 |
> |
34 |
> -- |
35 |
> Neil Bothwick |
36 |
> |
37 |
> If this were an actual tagline, it would be funny. |
38 |
> |
39 |
> |
40 |
> |
41 |
-- |
42 |
gentoo-user@g.o mailing list |