jablonka.czprosek.czf

wifimon

Subversion Repositories:
[/] [trunk/] [wifimon] - Diff between revs 31 and 32

Show entire file Ignore whitespace

Rev 31 Rev 32
Line 5... Line 5...
# 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.7pre6" wl_version="0.5.7pre7"
   
###################################################################### ######################################################################
#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 434... Line 434...
then then
echo "" echo ""
else else
if [ -d $wl_hostap$wl_iface ] if [ -d $wl_hostap$wl_iface ]
then then
echo -n $wl_macparam | $wl_awkcmd '{print $1,$2" "}' echo $wl_macparam | $wl_awkcmd '{print $1,$2" "}'
fi fi
if [ -d $wl_madwifi$wl_iface ] if [ -d $wl_madwifi$wl_iface ]
then then
echo $wl_rxtx echo -n $wl_rxtx
  echo ""
fi fi
  # echo ""
fi fi
w_bar w_bar
else else
if [ $wcm_macoff -eq 0 ] if [ $wcm_macoff -eq 0 ]
then then
Line 598... Line 600...
then then
wcm_ifc="$wcm_ifc $wl_iface" wcm_ifc="$wcm_ifc $wl_iface"
wl_flg=1 wl_flg=1
fi fi
done done
   
fi fi
if [ $wl_flg -eq 0 ] if [ $wl_flg -eq 0 ]
then then
wl_unknown="$wl_unknown$1 " wl_unknown="$wl_unknown$1 "
fi fi
Line 640... Line 641...
wl_numcl=`ls $wl_hostap$wl_iface | grep -c 00` wl_numcl=`ls $wl_hostap$wl_iface | grep -c 00`
wl_numcllast=$(($wl_numcllast + $wl_numcl)) wl_numcllast=$(($wl_numcllast + $wl_numcl))
fi fi
if [ -d $wl_madwifi$wl_iface ] if [ -d $wl_madwifi$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_wlancf $wl_iface list sta | grep -c ^[0..9]` wl_numcl=`$wl_wlancf $wl_iface list sta 2>/dev/null | grep -c ^[0..9]`
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

Powered by WebSVN 2.2.1