1 |
On Tue, Jun 29, 2004 at 08:35:19AM -0400, Mike Frysinger wrote: |
2 |
> On Tuesday 29 June 2004 07:31 am, Xavier Neys wrote: |
3 |
> > Gustavo Adolfo Silva Ribeiro Felisberto wrote: |
4 |
> > > My problem is that on different places i need different network setups. |
5 |
> > > On the road i want to start net.eth1 in dhcp mode, while at work i need |
6 |
> > > eth1 with static ip and wep and at home i want to start eth1 with static |
7 |
> > > ip and no wep. |
8 |
> > |
9 |
> > http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=5#doc_ch |
10 |
> >ap5 |
11 |
> |
12 |
> that document does not cover what he needs to do |
13 |
> |
14 |
> the answer is, with baselayout-1.9.x, there is no way to do what you want ... |
15 |
Well, he could: |
16 |
- generate two files: |
17 |
/etc/init.d/setup_mobile |
18 |
/etc/init.d/setup_home |
19 |
- each on them copies the according setup to /etc/conf.d/net |
20 |
- both have a "before net" the depend() |
21 |
- setup_home is in default, setup_mobile is in the mobile |
22 |
runlevel |
23 |
- configure grub with a additional option using softboot=mobile |
24 |
|
25 |
To change runlevels after boot he would have to: |
26 |
/etc/init.d/net.eth0 stop |
27 |
rc other_level |
28 |
though. |
29 |
|
30 |
I hope, this is not complete nonsense. |
31 |
|
32 |
Greetz, |
33 |
|
34 |
Björn Michaelsen, Hamburg, Germany |
35 |
|
36 |
-- |
37 |
Björn Michaelsen |
38 |
pub 1024D/C9E5A256 2003-01-21 Björn Michaelsen <bmichaelsen@×××.de> |
39 |
Key fingerprint = D649 8C78 1CB1 23CF 5CCF CA1A C1B5 BBEC C9E5 A256 |