You are not logged in.
Pages: 1
Hi!
I have a wireless card with rt61 driver and WPA and static IP. I made a little script to configure the interface, when i want use it I run the script.
ifconfig ra0 down
iwconfig ra0 essid myessid
iwconfig ra0 mode managed
iwpriv ra0 set AuthMode=WPAPSK
iwpriv ra0 set EncrypType=TKIP
iwpriv ra0 set WPAPSK="myWPApasskey"
ifconfig ra0 192.168.2.6 netmask 255.255.255.0 broadcast 192.168.2.255
route add default gw 192.168.2.1 ra0
I'd like configure interface in boot process, but i don't know how include iwpriv commands in /etc/conf.d/wireless.
I can't use wpa_supplicant because don't works with rt61 driver.
Can anybody help me?
Thanks!
Offline
I have an easy way out for you that doesn't include "/etc/conf.d/wireless".
If you used the PKGBUILD from the AUR to make you module, there should be a file in /etc/Wireless/RT61STA/example-rt61sta.dat.
do (as root):
mv /etc/Wireless/RT61STA/{example-,}rt61sta.dat
vim -b /etc/Wireless/RT61STA/rt61sta.dat
Be sure to use "vim -b". This makes vim edit in binary-mode. You could also use emacs, which edits this file in binary-mode by default.
Make it look like this:
SSID=ssid
AuthMode=WPAPSK
EncrypType=TKIP
WPAPSK=yourkeygoeshere
The driver reads this file when you load it, so now there's no more need to use iw{config,priv}
You can configure your card like a wired card in /etc/rc.conf, no more need for a wireless "daemon"...
and you can
/etc/rc.d/network start|restart
JP
Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!
Offline
anyone know if this will work with rt2500 (wmp54g card)?
Offline
It should, though the file to edit would be "/etc/Wireless/RT2500STA/RT2500STA.dat". But it looks like the rt2500 package doesn't include this file.
You could try to just create the file in that directory. If that doesn't work, you could use abs to get the extra tree and do
cd /var/abs/extra/network/rt2500
makepkg -o
mkdir -p /etc/Wireless/RT2500STA
find . -name "RT2500STA.dat" -exec cp {} /etc/Wireless/RT2500STA \;
and proceed as mentioned earlier
[EDIT]
A better way would be to make a local PKGBUILD in /var/abs/local/rt2500 and make that include the file. This is to prevent "file present" blocking messages of pacman if the official package were to ever include the file...
[/EDIT]
Last edited by klixon (2007-03-23 08:31:12)
Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!
Offline
Pages: 1