Gentoo Archives: gentoo-dev

From: William Hubbs <williamh@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] rfc: *_iface variables in openrc network scripts
Date: Thu, 12 May 2011 14:35:44
Message-Id: 20110512143414.GA30669@linux1
In Reply to: Re: [gentoo-dev] rfc: *_iface variables in openrc network scripts by "Jorge Manuel B. S. Vicetto"
1 Hi Jorge,
2
3 On Thu, May 12, 2011 at 02:01:19AM +0000, Jorge Manuel B. S. Vicetto wrote:
4 > On 12-05-2011 01:45, William Hubbs wrote:
5 > > In my opinion, the best way to fix this, and the best way forward, would
6 > > be to stop doing this. My plan is something like this:
7 > >
8 > > For the next openrc release, put in a warning that config_* is
9 > > deprecated and advise the use of ifconfig_* or ipconfig_* depending on
10 > > which interface handler is being used. Then, at some point in the
11 > > future, remove support for config_*.
12 > >
13 > > Does anyone have any thoughts?
14 >
15 > William,
16 >
17 > isn't that the whole point of the "modules" variable in the config file?
18 > One of the first things I do when configuring a new system is to edit
19 > /etc/conf.d/net and I start by adding modules="iproute2" to it.
20
21 I'm not sure I follow. would you rather keep the config_* variable?
22
23 If so, how do you feel about requiring the syntax of the variable to
24 match the tool you are using?
25 That would mean that the following snippets would not work:
26
27 modules="iproute2"
28 config_iface="x.x.x.x netmask y.y.y.y broadcast z.z.z.z"
29 # the above is using ifconfig syntax with the iproute2 module
30
31 modules="ifconfig"
32 config_iface="x.x.x.x/y broadcast z.z.z.z"
33 # This is using iproute2 syntax with the ifconfig module.
34
35 William

Replies

Subject Author
Re: [gentoo-dev] rfc: *_iface variables in openrc network scripts "Jorge Manuel B. S. Vicetto" <jmbsvicetto@g.o>