View Single Post
Old 11-15-2011, 11:43 PM   #50
tiger12506
Junior Member
tiger12506 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2011
Device: Kindle 3
Kindle 3 WPA2 Enterprise School Network

For some reason I had to disable wifid, dhcp, set the routes and everything. Here's currently what I have...

I turn on wireless and run this script from kiterm (could use launchpad).

In the script below, replace username, password, SSID, and IPADDRESS.1 with the appropriate values. IPADDRESS.1 is my lingo for the first three parts of your ip address and then dot 1, because that is most likely to be your gateway address.

Code:
#!/bin/sh

/etc/init.d/wifid stop

id="`wpa_cli add_network | sed -n '2p'`"

exec="`wpa_cli << EOF
set_network $id ssid \"SSID\"
set_network $id scan_ssid 1
set_network $id key_mgmt WPA-EAP
set_network $id pairwise TKIP
set_network $id group TKIP
set_network $id eap PEAP
set_network $id identity \"username\"
set_network $id password \"password\"
set_network $id phase1 \"peaplabel=0\"
set_network $id phase2 \"auth=MSCHAPV2\"
enable_network $id
quit
EOF
`"
echo $exec

sleep 5

udhcpc -i wlan0
route add default gw IPADDRESS.1
mntroot rw
cp /tmp/resolv.conf /etc/resolv.conf
mntroot ro
EDIT: I'd like to mention that this does NOT allow me to use the browser!! Anyone know how to do that?? Browser doesn't get the message that we're already connected and tries to connect to a wifi network. Can't bypass this.

Last edited by tiger12506; 11-15-2011 at 11:50 PM.
tiger12506 is offline   Reply With Quote