Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Auto bring up wlan connection during booting
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
ArchiCAT
n00b
n00b


Joined: 07 Jan 2005
Posts: 14

PostPosted: Fri Jan 07, 2005 6:42 pm    Post subject: Auto bring up wlan connection during booting Reply with quote

I use these commands to connect to internet:
Code:

modprobe ndiswrapper
iwconfig wlan0 mode Managed
iwconfig wlan0 essid <ID>
iwconfig wlan0 key <KEY>
dhcpcd wlan0

I can hook the information by
Code:
ndiswrapper -m
in other distribution so that it brings up the wlan connection during booting. But it doesn't work in gentoo. Any idea? thanks
Back to top
View user's profile Send private message
Frodg
l33t
l33t


Joined: 11 Feb 2004
Posts: 761

PostPosted: Sat Jan 08, 2005 12:20 am    Post subject: Reply with quote

If you put the commands in local.start they should implement on boot....

Either as individual commands or perhaps in a script file?
_________________
Aerosolo ergo sum - I spray therefore I am

Gentoo - Registered Linux User # 361400
Back to top
View user's profile Send private message
ArchiCAT
n00b
n00b


Joined: 07 Jan 2005
Posts: 14

PostPosted: Sat Jan 08, 2005 2:01 am    Post subject: Reply with quote

Thanks for your suggestion!

Is there any alternative? e.g. some modprobe.conf that i can put "modprobe ndiswrapper" into, and some other config file that i can put the essid/key record into? (I tried to put it in wireless.opts and it doesn't work)
Back to top
View user's profile Send private message
tuukka
n00b
n00b


Joined: 08 Jan 2004
Posts: 7
Location: San Sebastian, Gipuzkoa, Spain

PostPosted: Sat Jan 08, 2005 1:44 pm    Post subject: Reply with quote

You can specify the modules that you want to load during the boot in /etc/modules.autoload.d/kernel-2.x file. Just add a line ndiswrapper and the module will be loaded when you boot.

The wireless config is in /etc/conf.d/wireless
There you can configure all the parameters you might want to releating to your wlan config (There's propably a file called /etc/conf.d/wireless.example which is well commented and shows you how to configure your wlan).

Then with
Code:
 /etc/init.d/net.wlan0 start

you can bring up your wlan.
If you don't have a net.wlan0 file, create a link:
Code:
ln -s /etc/init.d/net.lo /etc/init.d/net.wlan0


To start it automatically during boot do

Code:
rc-update add net.wlan0 boot
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