View Single Post
Old 04-17-2011, 01:43 AM   #33
victoria0217
Junior Member
victoria0217 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jul 2010
Device: Kindle
Hello guys. I've been following this thread and trying to get my kindle 3 to work with my college wifi. but so far, no luck.
I followed everything mentioned in the posts and have been tweaking my config script, but I haven't been able to get it to work.

Here's what my college suggest people to do in Linux to get online:
Code:
network={
	ssid="SchoolName"         # essid...                                            [REQUIRED]
	proto=WPA              # only WPA works, only required with b43 drivers      [REQUIRED]
	key_mgmt=WPA-EAP       # only TKIP works need to prevent default to WPA-PSK  [REQUIRED]
	pairwise=CCMP          # only CCMP & TKIP work, CCMP is more secure
	group=TKIP             # only TKIP works
	eap=PEAP               # only PEAP works
	phase1="peapver=0 peaplabel=0" # only peaplabel=0 works, only peapver=0 works
	phase2="auth=MSCHAPV2" # works, not sure what it does, or what else works
	scan_ssid=1            # 0 and 1 work, 0 is possibly faster

	identity="<username>"  # username                                   [REQUIRED]
	password="<password>"  #password                                   [REQUIRED]
}
And here is what I have for my script:
Code:
#!/bin/sh

sleep 6

id="`wpa_cli list_networks | grep schoolName | cut -f1 | sed -n '1p'`"

exec="`wpa_cli << EOF
set_network $id ssid \"SchoolName\"
set_network $id scan_ssid 1
set_network $id key_mgmt WPA-EAP
set_network $id pairwise CCMP
set_network $id group TKIP
set_network $id eap PEAP
set_network $id phase1 \"peapver=0 peaplabel=0\"
set_network $id phase2 \"auth=MSCHAPV2\"

set_network $id identity \"username\"
set_network $id password \"password\"

enable_network $id
quit
EOF
`"
echo $exec
#!/usr/bin/perl
I don't know what I'm missing here, could you please tell me what might be wrong with this? I tried with and without specifying phase1 and phase 2.
And also I don't know much about shell script, but I have a parenthesis and a colon in my password, do they mess up the script?

Thanks a lot!
victoria0217 is offline   Reply With Quote