Created
February 1, 2013 03:49
-
-
Save kmanna/4689045 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
let i=0 | |
killall wpa_supplicant | |
wpa_supplicant -c /etc/wifi/wpa_supplicant.conf -i wlan0 | |
while true; | |
do | |
echo $i; | |
i=$(($i+1)) | |
wpa_cli -p /data/misc/wifi/sockets scan | |
usleep 750000 | |
wpa_cli -p /data/misc/wifi/sockets scan_result | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment