summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2013-09-27 01:58:42 +0200
committerlassulus <lassulus@googlemail.com>2013-09-27 01:58:42 +0200
commite834ba53362a9cbd9404c70c51feb655dd352f98 (patch)
tree4fdb143ab6c876ea69ed0ace2db4353b2db9c32e
parent39d6a2fb1ee0f714e893f8247c19651a583a3ba7 (diff)
now with fortune mod
-rwxr-xr-xusr/bin/autowifi_dryrun3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr/bin/autowifi_dryrun b/usr/bin/autowifi_dryrun
index 68e38a8f..ee22473e 100755
--- a/usr/bin/autowifi_dryrun
+++ b/usr/bin/autowifi_dryrun
@@ -58,13 +58,13 @@ connect_with_pw(){
done;exit 1)
}
wifi_init(){
+ exists fortune && fortune -a
wpa_supplicant_is_usable || start_wpa_supplicant /tmp/autowifi.wpa_supplicant
wifi_scan > /tmp/${interface}.scan
. /tmp/${interface}.scan
}
loop_over_networks(){
- wifi_init
for i in `seq 1 $WIFI_COUNT`; do
loop_over_cracks "$i"
if [ $? -eq 0 ]; then
@@ -85,7 +85,6 @@ loop_over_cracks(){
return 1
}
loop_cracks_over_networks(){
- wifi_init
for crack in $(find $crackdir -type f | sort -u); do
for i in `seq 1 $WIFI_COUNT`; do
KEY="$(eval root=$root \$crack \"\${ESSID_${i}}\" \"\${MAC_${i}}\" \${FREQ_${i}} \${ENCRYPTION_${i}})"