Wednesday, January 07, 2009

Getting wifi to start at boot in Puppy Linux on Asus EeePC 901

I posted to the Puppy forum about my complete inability to get wifi working in Puppy 4.1.1 even though the configuration setup seemed to go fine, the "blinky" (as it's called) shows up in the tray and seems to be working (flashing and showing kB received/sent). However, still can't ping or browse.
The thread suggested upgrading to Puppy 4.1.2 and,sure enough,this got wifi working,but only after doing quite a bit of manual configuration after every boot.
So, I made the following bash script to do all this for me, made it executable with

chmod a+x startwifi

and then moved this to the /root/Startup/ directory.
Now, wifi starts up at boot without me having to do anything else.
Here's the script:
sleep 10
ifconfig ra0 up
iwconfig ra0 key open
iwconfig ra0 key abcdefghijklmnopqrstuvwxyz
iwconfig ra0 essid "zyxwvu"
ifconfig ra0 netmask
route add default gw

The "sleep 10" line in the script is to make sure that the wifi initialization starts before the configuration script starts.

No comments:

Post a Comment