wifimon |
Subversion Repositories: |
Rev 32 | Rev 33 | |
---|---|---|
Line 2... | Line 2... | |
# authors : Petr Simandl www.simandl.cz |
# authors : Petr Simandl www.simandl.cz | |
# : Fyzik, Covex, Tydyt, Thunder.m |
# : Fyzik, Covex, Tydyt, Thunder.m | |
# release date : 12/04/2006 |
# release date : 03/06/2006 | |
# name : wifimon |
# name : wifimon | |
# description : hostap and madwifi powered card monitoring |
# description : hostap and madwifi powered card monitoring | |
# license : GPL |
# license : GPL | |
###################################################################### |
###################################################################### | |
|
| |
wl_version="0.5.7pre7" |
wl_version="0.5.7pre8" | |
|
| |
###################################################################### |
###################################################################### | |
#custom settings |
#custom settings | |
|
| |
PATH=$PATH:$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin |
PATH=$PATH:$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin | |
Line 650... | Line 650... | |
wl_numcllast=$(($wl_numcllast + $wl_numcl)) |
wl_numcllast=$(($wl_numcllast + $wl_numcl)) | |
fi |
fi | |
fi |
fi | |
if [ -d $wl_sysdev$wl_iface ] |
if [ -d $wl_sysdev$wl_iface ] | |
then |
then | |
wl_mode=`$wl_iwccmd $wl_iface | grep Mode | $wl_awkcmd '{print $1}' | sed 's/Mode://g'` |
wl_mode=`$wl_iwccmd $wl_iface 2>/dev/null | grep Mode | $wl_awkcmd '{print $1}' | sed 's/Mode://g'` | |
if [ "a$wl_mode" = "aMaster" ] |
if [ "a$wl_mode" = "aMaster" ] | |
then |
then | |
wl_numcl=`$wl_iwlcmd $wl_iface peers | grep -c 00` |
wl_numcl=`$wl_iwlcmd $wl_iface peers | grep -c 00` | |
wl_numcllast=$(($wl_numcllast + $wl_numcl)) |
wl_numcllast=$(($wl_numcllast + $wl_numcl)) | |
fi |
fi |