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
|