1 |
On Wed, 23 Apr 2008 23:38:30 +0200, Alan McKinnon wrote: |
2 |
|
3 |
> Does baselayout-2 use /etc/conf.d/net? It seems not from this: |
4 |
|
5 |
Yes, and with no changes needed here apart from the removal of Bash |
6 |
arrays. |
7 |
|
8 |
> alan@nazgul ~ $ sudo /etc/init.d/net.wlan0 restart |
9 |
> * Bringing up interface wlan0 |
10 |
> * Configuring wireless network for wlan0 |
11 |
> * Scanning for access points |
12 |
> * Found "tania" at 00:60:B3:30:8D:AB, managed, encrypted |
13 |
> * Found "belkin54g" at 00:30:BD:99:D3:8B, managed |
14 |
> * Connecting to "tania" in managed mode (WEP enabled - |
15 |
> open) ... [ ok ] |
16 |
> * wlan0 connected to SSID "tania" at ************** |
17 |
> * in managed mode (WEP enabled - open) |
18 |
> * No configuration specified; defaulting to DHCP |
19 |
> * dhcp ... |
20 |
> * Running |
21 |
> dhcpcd ... [ ok ] |
22 |
> * received address |
23 |
> 10.0.0.3/24 [ ok ] |
24 |
> |
25 |
> Note the "no configuration specified". However: |
26 |
> |
27 |
> alan@nazgul ~ $ egrep -v '^#|^$' /etc/conf.d/net |
28 |
> iface_eth0="dhcp" |
29 |
> iface_wlan0="dhcp" |
30 |
|
31 |
Those should be config_xxx="dhcp" |
32 |
|
33 |
> modules=( "iwconfig" ) |
34 |
|
35 |
And this should now be modules="iwconfig", although I inadvertently left |
36 |
a couple of Bash arrays in mine and it still worked (and I think iwconfig |
37 |
is the default for wireless anyway). |
38 |
|
39 |
> Has the location of the net init scripts changed? |
40 |
|
41 |
Not unless you count an earlier baselayout2 ebuild sometimes deleting /etc/conf.d/net when it shouldn't :( |
42 |
|
43 |
|
44 |
-- |
45 |
Neil Bothwick |
46 |
|
47 |
Programming just with goto's is like swatting flies with a sledgehammer. |