Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wireless disappears on reboot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
taptaptactus
n00b
n00b


Joined: 14 Dec 2004
Posts: 2

PostPosted: Sun Jan 02, 2005 10:53 am    Post subject: Wireless disappears on reboot Reply with quote

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
View user's profile Send private message
smithj
Retired Dev
Retired Dev


Joined: 24 Sep 2004
Posts: 111

PostPosted: Sun Jan 02, 2005 4:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum