1 |
Hi List |
2 |
|
3 |
As some of you may be aware, I've started work on baselayout-2 which is |
4 |
basically re-tooling it in C. One of the side goals is to eliminate the |
5 |
need for using bash. You'll be pleased to know that it's working well |
6 |
enough to boot Gentoo/FreeBSD. |
7 |
|
8 |
Now, this email isn't about the merits of bash, nor the fact that it's |
9 |
in base system profile so we can use it anyway, blah blah blah. |
10 |
embedded has a vested interest in not using bash and I have a personal |
11 |
interest as Gentoo/FreeBSD on Sparc64 takes a very long time to boot. |
12 |
|
13 |
This email is about network configuration. Before I joined Gentoo, |
14 |
network configuration was done in bash arrays like so (note, that the |
15 |
variable name was changed in baselayout-1.11) |
16 |
|
17 |
ifconfig_eth0=( |
18 |
"10.1.1.1 netmask 255.255.255.0" |
19 |
"10.1.1.2 netmask 255.255.255.0" |
20 |
) |
21 |
|
22 |
This is all well and good, but only bash and zsh can use it. Infact I'm |
23 |
guilty as I embraced arrays and used them as the basis for our entire |
24 |
network scripts. They have also served us well, but as they are also |
25 |
array based they will have to be re-written too. |
26 |
|
27 |
So, to free baselayout of forcing bash down our throats I/we am/are |
28 |
looking at re-writing our network setup, including configuration. |
29 |
|
30 |
Who's got any bright ideas for a new config then? Lets brain storm! |
31 |
|
32 |
Thanks |
33 |
|
34 |
Roy |
35 |
-- |
36 |
gentoo-dev@g.o mailing list |