firefly2442
Member
Hi all,
I'm having some issues with the wireless script. I was able to set my SSID in the configuration file and connect to an open wireless AP but for one that requires authentication, I'm having problems. I edited "start_wireless.gpu" and added in my WPA key and it looks like it works when I run it. No problems, but at DHCP, it gives me a MAC address and then says Done. But when I bring up "ifconfig", it doesn't show up as wireless. Here's my script at the moment:
CODE
#!/bin/sh
(
ifname=rausb0
printf "\033[31m WiFi Setup Utility\n\n\033[32m"
printf "Installing rt2570 module...\n"
rmmod $PWD/rt2570.o
insmod ./rt2570.o
sleep 1
printf "Bring up $ifname...\n"
ifconfig $ifname up
printf "Find preferred SSID...\n"
ssid=`./preferredSSID.sh`
printf "Connect to $ssid network...\n"
./iwconfig $ifname essid $ssid
sleep 1
printf "Using WPA Key...\n"
./iwconfig $ifname key s:mykey
sleep 1
printf "Set to managed mode...\n"
./iwconfig $ifname mode Managed
sleep 1
printf "DHCP...\n"
./dhcpcd -d $ifname
printf "All Done!\n"
sleep 2
) 2>&1 | ./gp2xole
cd /usr/gp2x; exec ./gp2xmenu
#important bits:
#rmmod $pwd/rt2570.o
#insmod ./rt2570.o
#ifconfig $ifname up
#ifconfig $ifname $tmpip
#./iwconfig $ifname essid $ssid
#./iwconfig $ifname mode Managed
Any ideas? Thanks.
I'm having some issues with the wireless script. I was able to set my SSID in the configuration file and connect to an open wireless AP but for one that requires authentication, I'm having problems. I edited "start_wireless.gpu" and added in my WPA key and it looks like it works when I run it. No problems, but at DHCP, it gives me a MAC address and then says Done. But when I bring up "ifconfig", it doesn't show up as wireless. Here's my script at the moment:
CODE
#!/bin/sh
(
ifname=rausb0
printf "\033[31m WiFi Setup Utility\n\n\033[32m"
printf "Installing rt2570 module...\n"
rmmod $PWD/rt2570.o
insmod ./rt2570.o
sleep 1
printf "Bring up $ifname...\n"
ifconfig $ifname up
printf "Find preferred SSID...\n"
ssid=`./preferredSSID.sh`
printf "Connect to $ssid network...\n"
./iwconfig $ifname essid $ssid
sleep 1
printf "Using WPA Key...\n"
./iwconfig $ifname key s:mykey
sleep 1
printf "Set to managed mode...\n"
./iwconfig $ifname mode Managed
sleep 1
printf "DHCP...\n"
./dhcpcd -d $ifname
printf "All Done!\n"
sleep 2
) 2>&1 | ./gp2xole
cd /usr/gp2x; exec ./gp2xmenu
#important bits:
#rmmod $pwd/rt2570.o
#insmod ./rt2570.o
#ifconfig $ifname up
#ifconfig $ifname $tmpip
#./iwconfig $ifname essid $ssid
#./iwconfig $ifname mode Managed
Any ideas? Thanks.