View Single Post
Old 08-22-2011, 10:01 AM   #39
MacUsers
Member
MacUsers began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jul 2011
Device: Kindle 3
Quote:
Originally Posted by otichy View Post
Code:
#!/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 phase2 \"auth=MSCHAPV2\"
set_network $id ca_cert \"CERTIFICATE\"
enable_network $id
quit
EOF
`"
echo $exec
#!/usr/bin/perl
One question: What does the very last line do - #!/usr/bin/perl ?? Is it a typo?
And, can anyone confirm if it still works with v3.2.1 firmware? Cheers!!!
MacUsers is offline   Reply With Quote