#!/bin/sh
# minimalistic console WLAN scanner 
# by Stefan Dambeck DC7DS 16-12-2005

/usr/bin/clear

/usr/sbin/wl ap 0 >/dev/null

/usr/sbin/wl disassoc 1>/dev/null 2>/dev/null

/usr/sbin/wl passive >/dev/null

/usr/sbin/wl scan >/dev/null

echo "*******************************************"
echo "                  Miniscan" 
echo "minimalistic console WLAN scanner by DC7DS"
echo "       Press CTRL+C to exit scanning!"
echo "*******************************************"
echo""
/bin/sleep 5

/usr/sbin/wl scanresults


X=1
while [ $X -eq 1 ]
do

/usr/sbin/wl ap 0 >/dev/null

/usr/sbin/wl disassoc 1>/dev/null 2>/dev/null

/usr/sbin/wl passive >/dev/null

/usr/sbin/wl scan >/dev/null

/bin/sleep 5

/usr/bin/clear

echo "*******************************************"
echo "                  Miniscan" 
echo "minimalistic console WLAN scanner by DC7DS"
echo "       Press CTRL+C to exit scanning!"
echo "*******************************************"
echo""

/usr/sbin/wl scanresults


          done




