View previous topic :: View next topic |
Author |
Message |
ArchiCAT n00b
Joined: 07 Jan 2005 Posts: 14
|
Posted: Fri Jan 07, 2005 6:42 pm Post subject: Auto bring up wlan connection during booting |
|
|
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 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 |
|
|
Frodg l33t
Joined: 11 Feb 2004 Posts: 761
|
Posted: Sat Jan 08, 2005 12:20 am Post subject: |
|
|
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 |
|
|
ArchiCAT n00b
Joined: 07 Jan 2005 Posts: 14
|
Posted: Sat Jan 08, 2005 2:01 am Post subject: |
|
|
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 |
|
|
tuukka n00b
Joined: 08 Jan 2004 Posts: 7 Location: San Sebastian, Gipuzkoa, Spain
|
Posted: Sat Jan 08, 2005 1:44 pm Post subject: |
|
|
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 |
|
|
|