Gentoo Archives: gentoo-ppc-dev

From: Luca Barbato <lu_zero@g.o>
To: Marc Ozon <gentoo@×××××××××××××××××××××.org>
Cc: gentoo-ppc-dev@g.o
Subject: Re: [gentoo-ppc-dev] Suggestions for net rc scripts
Date: Tue, 07 Oct 2003 01:36:44
Message-Id: 3F82187C.3000205@gentoo.org
In Reply to: Re: [gentoo-ppc-dev] Suggestions for net rc scripts by Marc Ozon
1 emerge quickswitch may be useful.
2
3 lu
4
5 Marc Ozon wrote:
6 > Re. Wendell's suggested modifications for the net startup scripts: This is
7 > a good idea, and the suggested script is a bit more complete than the one
8 > suggested here:
9 >
10 > http://bugs.gentoo.org/show_bug.cgi?id=25742
11 > (earlier version at http://bugs.gentoo.org/show_bug.cgi?id=16649)
12 >
13 > That being done, the Gentoo net configuration still lacks something I wish
14 > it had: a way to handle multiple sets of networking settings, as the
15 > 'location' setting in OS X does. As it is, I use multiple runlevels
16 > (similar to what's described at http://www.desertsol.com/~kevin/ppc/#network),
17 > and a simple shell script to switch locations. Doing this, I have a way to
18 > issue the appropriate iwconfig commands for each location: I put them in my
19 > runlevel-switching shell script.
20 >
21 > This makes me wonder: since we're thinking about messing with the net.ethX
22 > script, could multiple locations be included somehow? If so, how might this
23 > be done?
24 >
25 > In thinking about this, it seems it's still best to use multiple runlevels
26 > for different 'locations', but it would be nice if I didn't need a separate
27 > script to handle it. What I have in mind is something like this: in
28 > /etc/conf.d/net, there could be, e.g., 'multiple_locations=yes', which would
29 > trigger multiple location support in net.ethX. If there are multiple
30 > locations, /etc/conf.d/net could include settings like
31 > 'wirelessessid_eth1_home="abc"' and 'wirelessessid_eth1_work="def"', etc.;
32 > then, the net.ethX script might parse that, and apply the appropriate
33 > settings for whatever runlevel (i.e., location) is active, which it could
34 > read from /var/lib/init.d/softlevel. The result would be that switching
35 > runlevels would result in switching network settings, too. This would add
36 > significantly to the complexity of net.ethX, but enough of us might need
37 > multiple location support that the added complexity would be worth it.
38 >
39 > What do you think? Would this be a good idea? Is there a better way?
40 >
41 > Cheers,
42 > Marc
43 >
44 >
45 > --- Wendell Thomas Duncan <wendell@××××××××.com> [2003-10-03, 11:04]:
46 >
47 >> If these patch suggestions look good, could a developer forward these
48 >>patch ideas for the net.eth0 rc-scripts to the right person.
49 >>
50 >> I just got a new 802.11g base station. I could not see a good way to
51 >>get the iwconfig commands executed as part of the /ete/init.d/net.eth1
52 >>scripts. Maybe I missed a good tool somewhere, but it makes a lot of
53 >>sense to do this stuff in the net.eth0 rc-scripts. These scripts are
54 >>part of the baselayout ebuild.
55 >
56 >
57 > [script stuff snipped]
58 >
59
60
61 --
62 Luca Barbato
63 Developer
64 Gentoo Linux http://www.gentoo.org/~lu_zero
65
66
67
68
69 --
70 gentoo-ppc-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-ppc-dev] Suggestions for net rc scripts "Erik R. Jensen" <erikrj@×××××××××.com>