1 |
On Wednesday 18 November 2009 23:38:22 Michael P. Soulier wrote: |
2 |
> On 18/11/09 Mick said: |
3 |
> > I don't think that there bugs in conf.d/net just a matter of preference. |
4 |
> > Alan suggested that wicd is a simpler way to have your wireless |
5 |
> > configured and it does not need /etc/init.d/*net scripts to function. |
6 |
> > |
7 |
> > I am running wpa_supplicant: |
8 |
> > |
9 |
> > modules=( "wpa_supplicant" ) |
10 |
> > |
11 |
> > wpa_supplicant_ath0="-Dwext" |
12 |
> > |
13 |
> > and it just works??? for my wireless card. |
14 |
> > |
15 |
> > You may want to try something like this in your /etc/conf.d/net: |
16 |
> > |
17 |
> > sleep_scan_wlan0="1" |
18 |
> > |
19 |
> > config_wlan0=( "dhcp" ) |
20 |
> > fallback_wlan0=( "192.168.0.5 netmask 255.255.255.0" ) |
21 |
> > fallback_route_wlan0=( "default via 192.168.0.1" ) |
22 |
> > |
23 |
> > in case there is a dhcp problem with how the router releases IP address |
24 |
> > leases. |
25 |
> |
26 |
> I'm not using dhcp, just a static address. |
27 |
|
28 |
Does your router know this? I'm not being funny, but I had run into a problem |
29 |
sometime in the past where a change in the dhcpcd version caused the router to |
30 |
not read the NIC MAC address correctly. That created a clash with the IP |
31 |
address lease. |
32 |
|
33 |
> All I want the damn scripts to |
34 |
> do is this |
35 |
> |
36 |
> modprobe ndiswrapper |
37 |
|
38 |
OK, have you looked in your logs/dmesg? I think that the ndiswrapper has to |
39 |
load first and probe your NIC, before /etc/init.d/net.wlan0 launches. It may |
40 |
pay to keep an eye on the router logs while your machine boots. |
41 |
|
42 |
My line above with sleep_scan_wlan0="1" or say "3" seconds delay may help, if |
43 |
this is the problem. |
44 |
|
45 |
> iwconfig wlan0 essid digitaltorque |
46 |
> ifconfig wlan0 192.168.0.5 netmask 255.255.255.0 |
47 |
> route add default gw 192.168.0.1 |
48 |
> |
49 |
> After looking at the net.example again maybe I need this |
50 |
> |
51 |
> modules=( "ifconfig" "iwconfig" "!wpa_supplicant" ) |
52 |
|
53 |
If you have not installed wpa_supplicant you don't need this. Just make sure |
54 |
#modules=( "wpa_supplicant" ) is commented out. iwconfig is the default |
55 |
anyway. ifconfig or iproute2 will work so I don't think that you need to |
56 |
define that either. Your entries: |
57 |
|
58 |
essid_wlan0="digitaltorque" |
59 |
config_wlan0=( "192.168.0.5/24" ) |
60 |
routes_wlan0=( "default via 192.168.0.1" ) |
61 |
|
62 |
are correct - so the error is not because of these. |
63 |
|
64 |
> Or maybe I should just run an rc.local script. |
65 |
|
66 |
You could use the preup scripts in /etc/conf.d/net, if for some reason the |
67 |
ndiswrapper takes for ever to kick into action. |
68 |
|
69 |
HTH. |
70 |
-- |
71 |
Regards, |
72 |
Mick |