repo.or.cz
/
arrow.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
up, add new config files and delete old tar conf file
[arrow.git]
/
conf_slk120
/
bin
/
.bin
/
shell
/
arrow-ssid-scan-arrow
blob
6b8f6147553086a3fd5977f4732f15b048d1ed6e
1
#!/bin/bash
2
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"
17
fi