up, add new config files and delete old tar conf file
[arrow.git] / conf_slk120 / bin / .bin / shell / arrow-ssid-scan-arrow
blob6b8f6147553086a3fd5977f4732f15b048d1ed6e
1 #!/bin/bash
3 G_KEY=$1
4 if [ "$G_KEY" = "" ]; then
5 KEY="arrow"
6 else
7 KEY=$G_KEY
8 fi
9 sudo iwlist ath0 scan | grep ESSID > /tmp/ssid
10 cat /tmp/ssid | grep --color "ESSID"
11 echo "--------"
12 cat /tmp/ssid | grep -i "$KEY"
13 if [ "$?" != "0" ]; then
14 echo "_-_ none"
15 else
16 echo "-_- here"