View previous topic :: View next topic |
Author |
Message |
taptaptactus n00b
Joined: 14 Dec 2004 Posts: 2
|
Posted: Sun Jan 02, 2005 10:53 am Post subject: Wireless disappears on reboot |
|
|
I have successfully set up my internal wireless card using Ndiswrapper and iwconfig. I can use the internet, ping places, etc. I've been using the following commands:
Code: |
iwconfig wlan0 essid myessid key open mywepkey
ifconfig wlan0 up
dhcpcd wlan0
ndiswrapper -m
Adding "alias wlan0 ndiswrapper" to /etc/modules.conf
depmod: *** Unresolved symbols
in /lib/modules/2.4.26-gentoo-r9/kernel/drivers/scsi/sata_sil.o
depmod: *** Unresolved symbols
in /lib/modules/2.4.26-gentoo-r9/kernel/drivers/scsi/sata_svw.o
depmod: *** Unresolved symbols
in /lib/modules/2.4.26-gentoo-r9/kernel/drivers/scsi/sata_via.o
ln -s net.eth0 net.wlan0
cd /etc/init.d
rc-update add net.wlan0 default
echo "ndiswrapper" >> /etc/modules.autoload.d/kernel-2.4
nano -w /etc/conf.d/wireless
|
My /etc/conf.d/wireless reads:
Code: |
essid_wlan0="myessid"
mode_myessid="Managed"
channel_myessid=192.168.1.1
key_myessid="mywepkey enc open"
ifconfig_myessid=( "dhcp" )
dhcpcd_myessid="-t 5"
|
When I reboot, my route command says none of this ever happened, and I have to enter in the commands again if I want it to work.
Why isn't my config working? Something to do with the errors I get when I try ndiswrapper -m? How to fix it? |
|
Back to top |
|
|
smithj Retired Dev
Joined: 24 Sep 2004 Posts: 111
|
Posted: Sun Jan 02, 2005 4:37 pm Post subject: |
|
|
you have to add this to a startup script. this is commonly done in gentoo by using rc-update. you can eithor create a new script in /etc/init.d, or you can use the already existing one by doing this:
Code: | ln -s /etc/init.d/net.lo /etc/init.d/net.wlan0
rc-update add net.wlan0 default |
you will have to modify the net.lo file though. read the example file for ideas |
|
Back to top |
|
|
|