jablonka.czprosek.czf

wifimon

Subversion Repositories:
[/] [trunk/] [wifimon] - Diff between revs 24 and 25

Show entire file Ignore whitespace

Rev 24 Rev 25
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 : 11/09/2005 # release date : 17/09/2005
# 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.6pre1" wl_version="0.5.6pre2"
   
###################################################################### ######################################################################
#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 307... Line 307...
{ echo $wl_iwctxt | $wl_awkcmd '{print $1,$3,$4,$5" "}' { echo $wl_iwctxt | $wl_awkcmd '{print $1,$3,$4,$5" "}'
echo -n `$wl_ifccmd $wl_iface | grep -E "inet addr|inet adr" | $wl_awkcmd '{print $2}' | sed s/ad*r://g`" " # IP adresa mastera z ifconfig echo -n `$wl_ifccmd $wl_iface | grep -E "inet addr|inet adr" | $wl_awkcmd '{print $2}' | sed s/ad*r://g`" " # IP adresa mastera z ifconfig
   
if [ $wcm_macoff -eq 0 ] if [ $wcm_macoff -eq 0 ]
then then
wl_mac=`echo -n $wl_iwctxt | $wl_awkcmd '{print $9}'` wl_mac=`echo -n $wl_iwctxt | $wl_awkcmd '{print $8}'`
echo -n "${wlc_mac}$wl_mac${wlc_std} " echo -n "${wlc_mac}$wl_mac${wlc_std} "
fi fi
echo $wl_iwctxt | $wl_awkcmd '{print $6,$10" "}' echo $wl_iwctxt | $wl_awkcmd '{print $6,$10" "}'
   
wl_wtxt=`cat $wl_wireless | grep $wl_iface | $wl_awkcmd '{print $3,$4,$5}' | sed 's/\.//g'` wl_wtxt=`cat $wl_wireless | grep $wl_iface | $wl_awkcmd '{print $3,$4,$5}' | sed 's/\.//g'`
Line 333... Line 333...
echo $wl_iwctxt | $wl_awkcmd '{print $1,$3,$4,$5" "}' echo $wl_iwctxt | $wl_awkcmd '{print $1,$3,$4,$5" "}'
if [ $wcm_macoff -eq 1 ] if [ $wcm_macoff -eq 1 ]
then then
echo $wl_iwctxt | $wl_awkcmd '{print $6,$11" "}' echo $wl_iwctxt | $wl_awkcmd '{print $6,$11" "}'
else else
echo $wl_iwctxt | $wl_awkcmd '{print $6,$9,$11" "}' echo $wl_iwctxt | $wl_awkcmd '{print $6,$8,$11" "}'
fi fi
else else
echo $wl_iwctxt | $wl_awkcmd '{print $1,$4,$5,$6,$11" "}' | sed 's/ [^": ]*:/ /g' echo $wl_iwctxt | $wl_awkcmd '{print $1,$4,$5,$6,$11" "}' | sed 's/ [^": ]*:/ /g'
fi fi
   
Line 431... Line 431...
echo echo
} # w_master } # w_master
   
###################################################################### ######################################################################
w_iface() w_iface()
{ wl_iwctxt=`$wl_iwccmd $wl_iface 2>/dev/null | grep -v 'Device|Some|Extension' | sed 's/ Nick/_Nick/' | sed 's/Access Point/Access_Point/'` { wl_iwctxt=`$wl_iwccmd $wl_iface 2>/dev/null | grep -v 'Device|Some|Extension' | sed 's/ GHz/GHz/' | sed 's/ Mb/Mb/' | sed 's/ Nick/_Nick/' | sed 's/Access Point/Access_Point/'`
wl_mode=`echo $wl_iwctxt | $wl_awkcmd '{print $5}' | sed 's/Mode://g'` wl_mode=`echo $wl_iwctxt | $wl_awkcmd '{print $5}' | sed 's/Mode://g'`
if [ "a$wl_mode" = "aManaged" ] if [ "a$wl_mode" = "aManaged" ]
then then
w_managed w_managed
elif [ "a$wl_mode" = "aAd-Hoc" ] elif [ "a$wl_mode" = "aAd-Hoc" ]

Powered by WebSVN 2.2.1