Wittfella
Group: Members
Posts: 33
Joined: Sep. 2006 |
|
Posted: Sep. 18 2006,15:03 |
|
G'Day,
For those people who have a full HD install, this is how I got it to work automatically at startup. I realise it seems a long way around, and its easier to put the commands in bootlocal.sh, but I wanted to get it to work using the rc5.d startup stuff.
Firstly, you have to make sure the "/etc/network/interfaces" file is configured correctly. It should look similar to this (i use static, dhcp is slightly different)
Code Sample | auto lo wlan0 iface lo init loopback
iface wlan0 inet static address 192.168.1.3 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.1 <----my router, yours may be different
wireless-key XXXXXX open <----it defaults to "Restricted security", which is the same as "Shared". I happen to use "Open". wireless-essid XXXXXX
|
Assuming you have already loaded ndiswrapper you should now be able to bring up the network with;
"ifup" basically just runs iwconfig and ifconfig using the information supplied in the configuration file.
In my case, I cannot get ndiswrapper to load automatically. I added it to "/etc/modules" as instructed in many places but still no go. I eventually got it to work by modifying the "interfaces" file again;
Code Sample | auto lo wlan0 iface lo init loopback
iface wlan0 inet static pre-up modprobe ndsiwrapper <----added these two lines pre-up sleep 4
address 192.168.1.3 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.1 <----my router, yours may be different
wireless-key XXXXXX open <----it defaults to "Restricted security" normally, which is the same as "Shared". I happen to use "Open". wireless-essid XXXXXX
|
I needed the sleep command because ndiswrapper takes a couple of seconds to activate, so you need to make sure wlan0 is created before iwconfig is called.
Now to get this executed at boot using the normal rc.d stuff, go to "/etc/rc5.d" and create a symlink to the standard network startup script, which basically just calls "ifup -a".
Code Sample | ln -s /etc/init.d/networking S20networking
|
Hope this is of use to someone,
Cheers, Wittfella
|