Page 1 of 1

RT2500 and wpa

Posted: Tue 15 Jul 2008, 19:42
by metapower
hello
i try to configure the wifi on my laptop computer, a MSI S250. I have a RT2500 chipset recognized
this is my personal script but i don't have a good ip

Code: Select all

ifconfig ra0 up
iwpriv ra0 set NetworkType=Infra
iwconfig ra0 mode managed
iwpriv ra0 set AuthMode=WPAPSK
iwpriv ra0 set EncrypType=TKIP
iwpriv ra0 set WPAPSK=mywpalongcodewithout""
iwpriv ra0 set SSID=myssid

rm /var/run/dhcpcd*.pid
dhcpcd -t 30 -h puppypc -d ra0
thanks

Posted: Tue 15 Jul 2008, 20:12
by metapower
ok it's good i forgot the "" for password and ssid

puppy is a perfect operating system

so now i'd like to have my wifi connection automatically at startup
i placed my script in the /etc/rc.d directory and chmod 755 the file
but nothing happened
must i add something .... like sleep 5 (for ex) but i don't know where in the script....
thanks

Posted: Sat 15 Nov 2008, 13:58
by valpy
Try including your commands at the end of the file /etc/rc.d/rc.local

The contents of this file are automatically included in the startup script and will be executed at the end of startup.

You don't need to make /etc/rc.d/rc.local executable.

Posted: Sun 16 Nov 2008, 03:19
by davids45
G'day,
For my rt2500 systems, I'm using a script that is run from the Startup directory in /root.

The "Read Me" in the "Startup" directory says:
"Any executable or scripts (or symlink to) placed in this directory
will be executed after the X desktop has loaded.
This is handy if you want something to run automatically.
You can easily create a "symlink" (symbolic link) to an executable.
For example, say that you wanted to run /usr/local/bin/rubix (a game)
everytime Puppy is started. Use ROX-Filer (the file manager) and open
two windows, one on /usr/local/bin, the other on /root/Startup.
Then just drag 'rubix' across and a menu will popup and ask if you want to copy, move or link, and you choose to link.
Note, if you want to execute something at bootup and prior to X desktop loading, edit /etc/rc.d/rc.local."

So this is a different way to get your wireless running on starting up.

I find that sometimes it can take a minute or two to complete the connection, sometimes it is almost instant. Puzzling.

David S.