View previous topic :: View next topic |
Author |
Message |
hitchhiker04 n00b
Joined: 19 May 2005 Posts: 20
|
Posted: Tue Jun 14, 2005 10:28 pm Post subject: wireless at startup [solved] |
|
|
so I finally got my dwl-650 working. But everytime i log on, i have to type " iwconfig wlan0 essid ap-point " and "dhcpcd wlan0" to start the internet. how do i automate this process and have it start at boot? I think im suppose to add something to /etc/conf.d/net or wireless, but what?
thanks
Last edited by hitchhiker04 on Wed Jun 15, 2005 5:13 pm; edited 1 time in total |
|
Back to top |
|
|
zonk Apprentice
Joined: 23 May 2005 Posts: 176
|
Posted: Tue Jun 14, 2005 10:32 pm Post subject: |
|
|
/etc/conf.d/wireless will work for that. there's a wireless.example, too, which should help you create the file |
|
Back to top |
|
|
stustill Guru
Joined: 25 Feb 2003 Posts: 333 Location: Aberdeen, Scotland
|
Posted: Wed Jun 15, 2005 12:46 am Post subject: |
|
|
Add to /etc/conf.d/net:
Also run:
Code: | ln -s /etc/init.d/net.eth0 /etc/init.d/wlan0 |
Stu |
|
Back to top |
|
|
hitchhiker04 n00b
Joined: 19 May 2005 Posts: 20
|
Posted: Wed Jun 15, 2005 2:20 am Post subject: |
|
|
Quote: | iface_wlan0="dhcp"
ln -s /etc/init.d/net.eth0 /etc/init.d/wlan0 |
I did these. The wireless card now starts at boot but it can't connect b/c the ESSID is not specified.
I tried configuring the essid in /etc/conf.d/wireless, no success so far.
anyone know how to add the essid in /etc/conf.d/net ? |
|
Back to top |
|
|
user317 Guru
Joined: 26 Jan 2003 Posts: 314
|
Posted: Wed Jun 15, 2005 7:16 am Post subject: |
|
|
i am in the same boat as well |
|
Back to top |
|
|
Hauser l33t
Joined: 27 Dec 2003 Posts: 650 Location: 4-dimensional hyperplane
|
Posted: Wed Jun 15, 2005 7:34 am Post subject: |
|
|
Create a file with that " iwconfig wlan0 essid ap-point" command in it, call it 'wireless-up' or something like that, put it in /usr/local/bin, make it executable, then add the following line in /etc/conf.d/local.start:
Code: | /usr/local/bin/wireless-up |
_________________ AMD Athlon XP 2600+; 512M RAM;
nVidia FX5700LE; Hitachi 120Gb
2.6.9-nitro4, reiser4, linux26-headers+nptl
Do I like to compile everything?
Positive definite! |
|
Back to top |
|
|
zonk Apprentice
Joined: 23 May 2005 Posts: 176
|
Posted: Wed Jun 15, 2005 3:47 pm Post subject: |
|
|
you can just edit that in /etc/pcmcia/wireless
again, there is an example file. you can even specify different scenarios, make them different by scheme name (explanantions in the example file) and either append kernel boot options with "SCHEME=home" and "SCHEME=work" to boot into dhcp with essid "mynet" at home and static IP and essid "worknet" and work, or restart pcmcia services specifying a scheme name, effectively switching networks. |
|
Back to top |
|
|
hitchhiker04 n00b
Joined: 19 May 2005 Posts: 20
|
Posted: Wed Jun 15, 2005 5:13 pm Post subject: |
|
|
I followed hauser's approach, got it working now.
thanks |
|
Back to top |
|
|
user317 Guru
Joined: 26 Jan 2003 Posts: 314
|
Posted: Wed Jun 15, 2005 5:59 pm Post subject: |
|
|
zonk wrote: | you can just edit that in /etc/pcmcia/wireless |
i did edit /etc/conf.d/wireless and set my essid to the one that i want, but when the network is being enabled the essid is not set, so dhcp fails. |
|
Back to top |
|
|
zonk Apprentice
Joined: 23 May 2005 Posts: 176
|
Posted: Wed Jun 15, 2005 6:02 pm Post subject: |
|
|
huh. i don't have /etc/conf.d/wireless edited at all, only /etc/pcmcia/wireless. and dhcp works fine for me. |
|
Back to top |
|
|
user317 Guru
Joined: 26 Jan 2003 Posts: 314
|
Posted: Wed Jun 15, 2005 9:47 pm Post subject: |
|
|
i dont have an /etc/pcmcia, prolly because its a desktop without any pcmcia cards. so what is the correct way to get /etc/conf.d/wireless to do anything? anyone know? |
|
Back to top |
|
|
user317 Guru
Joined: 26 Jan 2003 Posts: 314
|
Posted: Thu Jun 16, 2005 4:15 am Post subject: |
|
|
here is how to do it the gentoo way Code: | emerge =sys-apps/baselayout-1.11.12-r4 | This will update a shitload of scripts on your system, so be ready to do some heavy etc-updating, well not so heavy i only had to update the login manager in /etc/rc.conf. The reason nothing was working for me is because i've had my gentoo installed since nov 2002, and my /etc/int.d/net.wlan0 has been completely out of date. Since you just updated baselayout do Code: | cp /etc/int.d/net.eth0 /etc/int.d/net.wlan0 | now you can set up your essid in /etc/conf.d/wireless, follow the /etc/conf.d/wireless.example file for more advanced options, all i did was add this line Code: | essid_wlan0="saratoga_surf_army" | to /etc/conf.d/wireless. Also make sure that you have in /etc/conf.d/net. now try running Code: | /etc/init.d/net.wlan0 restart | and everything should work. |
|
Back to top |
|
|
jyeh n00b
Joined: 26 May 2005 Posts: 8
|
Posted: Fri Jun 17, 2005 7:06 pm Post subject: |
|
|
user317 wrote: |
...
Code: | cp /etc/int.d/net.eth0 /etc/int.d/net.wlan0 |
...
|
I think that instead of copying net.eth0 to net.wlan0, it would be better to do a symlink
Code: | ln -s /etc/init.d/net.eth0 /etc/init.d/net.wlan0 |
Thanks for the guide. I helped me. |
|
Back to top |
|
|
user317 Guru
Joined: 26 Jan 2003 Posts: 314
|
Posted: Sat Jun 18, 2005 10:10 pm Post subject: |
|
|
jyeh wrote: |
Code: | ln -s /etc/init.d/net.eth0 /etc/init.d/net.wlan0 |
|
brilliant, why didnt i think of that. |
|
Back to top |
|
|
|