View previous topic :: View next topic |
Author |
Message |
chrroessner Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 02 Dec 2003 Posts: 156 Location: Germany
|
Posted: Fri Dec 19, 2003 11:16 pm Post subject: Wireless-LAN pcmcia card (NetGear WG511GR) with kernel 2.6.0 |
|
|
Hi,
I am using the prism54 kernel module to get my wireless lan card working. After I have written a short wlan.sh script, which configures my card, I would like to know, if there is a way to get it work automatically, when the card is plugged or unplugged.
I do not use pcmcia-cs.
I found out something is looking for /etc/init.d/net.eth1. hotplug? I tried to customize net.eth1, but with no success.
My question:
My script does ifconfig eth1 up and the iwconfig-stuff, followed by dhcpcd eth1. What do I have to put in /etc/conf.d/net, to get the stuff working with the normal rc-scripts? Do I have to add the iwconfig calls to net.eth1?
What is your experience with wireless lan based on kernel-support?
My wlan.sh:
Code: |
#!/bin/bash
case "$1" in
start)
ifconfig eth1 up
sleep 2
iwconfig eth1 ap XX:XX:XX:XX:XX:XX
iwconfig eth1 essid My_Essid
iwconfig eth1 freq 2.462G
iwconfig eth1 channel 11
iwconfig eth1 enc XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XX
dhcpcd eth1
;;
stop)
dhcpcd -z eth1 && ifconfig eth1 down
;;
*)
echo "Usage $0: {start|stop}"
;;
esac
|
Hopefully there is an automatic variant.
Regards
Christian |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Voltago Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/5021960813fd4cfeb02cbe.jpg)
Joined: 02 Sep 2003 Posts: 2593 Location: userland
|
Posted: Sat Dec 20, 2003 11:49 am Post subject: |
|
|
Why don't you just use pcmica-cs? It works with 2.6. In case you had a compiling problem, do the following:
Code: | cd /usr/src
rm linux
ln -s linux-2.6.0-gentoo-linux
ACCEPT_KEYWORDS="~x86" emerge pcmcia-cs |
Symlinking a 2.6er kernel source should prevent pcmcia-cs to try to install its own drivers, it will install tools only. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
sa Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/19728461713e657e299555f.gif)
Joined: 10 Jun 2002 Posts: 450
|
Posted: Sat Dec 20, 2003 1:27 pm Post subject: |
|
|
andy_ypsilon: the prism54 cards are cardbus, so they can't use pcmcia-cs.
(they look like pci cards to the system).
chrroessner: I have a prism54 card, as eth0. the hotplug system automaticly runs "/etc/init.d/net.eth0 start" when the card is inserted, (I dont run /etc/init.d/hotplug) .does this not happen to you with eth1? mabey you need to add a to /etc/modules.d/aliases?
but anyway, all I do is add Code: | /usr/sbin/iwconfig eth0 enc s:default_key_1
/usr/sbin/iwconfig eth0 essid my_essid
| to around line 45 in /etc/init.d/net.eth0 and it works perfectly, the rest of that iwconfig you are using is most likely uneccesary. (it is autodetected)
hth,
sa |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
chrroessner Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 02 Dec 2003 Posts: 156 Location: Germany
|
Posted: Sat Dec 20, 2003 6:34 pm Post subject: |
|
|
Okay, I will try it, but one question is left: What do you put into /etc/conf.d/net?
Is it true, the eth-device needs a ifconfig up call before using iwconfig? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
sa Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/19728461713e657e299555f.gif)
Joined: 10 Jun 2002 Posts: 450
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|