View Single Post
Old 03-08-2011, 11:41 PM   #32
wengang
Junior Member
wengang began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2011
Device: kindle 3
My company networked worked now!

I managed to connect to my company network finally! Woooohooo! Thanks for the tip!!

This is what I used. My company uses LEAP and TKIP. I just replaced the SSID/LOGIN/PASSWORD, and it just connects superbly and automatically.



Quote:
#!/bin/sh

sleep 6

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

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 LEAP
set_network $id identity \"LOGIN\"
set_network $id password \"PASSWORD\"
enable_network $id
quit
EOF
`"
echo $exec
#!/usr/bin/perl
wengang is offline   Reply With Quote