wifimon |
Subversion Repositories: |
Rev 29 | Rev 30 | |
---|---|---|
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 : 06/04/2006 |
# release date : 12/04/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.7pre4" |
wl_version="0.5.7pre5" | |
|
| |
###################################################################### |
###################################################################### | |
#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 | |
|
| |
wl_wlancf=`which wlanconfig` |
wl_wlancf=`which wlanconfig 2>/dev/null ` | |
wl_iwccmd=`which iwconfig` |
wl_iwccmd=`which iwconfig 2>/dev/null` | |
wl_iwlcmd=`which iwlist` |
wl_iwlcmd=`which iwlist 2>/dev/null` | |
wl_ifccmd=`which ifconfig` |
wl_ifccmd=`which ifconfig 2>/dev/null` | |
wl_hnmcmd=`which hostname` |
wl_hnmcmd=`which hostname 2>/dev/null` | |
wl_awkcmd=`which awk` |
wl_awkcmd=`which awk 2>/dev/null` | |
|
| |
wl_tptcmde="[1;1H" |
wl_tptcmde="[1;1H" | |
wl_clrcmde="[H[2J" |
wl_clrcmde="[H[2J" | |
|
| |
wl_sysdev="/proc/sys/dev/" |
wl_sysdev="/proc/sys/dev/" | |
wl_hostap="/proc/net/hostap/" |
wl_hostap="/proc/net/hostap/" | |
wl_madwifi="/proc/net/madwifi/" |
wl_madwifi="/proc/net/madwifi/" | |
wl_wireless="/proc/net/wireless" |
wl_wireless="/proc/net/wireless" | |
wl_arp="/proc/net/arp" |
wl_arp="/proc/net/arp" | |
wl_dhcpcnf="/etc/dhcpd.conf" |
wl_dhcpcnf="/etc/dhcpd.conf" | |
wl_dhcplss="/var/lib/dhcp/dhcpd.leases" |
wl_dhcplss="/var/lib/dhcpd/dhcpd.leases" | |
# wl_dhcpcnf="/etc/dhcp3/dhcpd.conf" |
# wl_dhcpcnf="/etc/dhcp3/dhcpd.conf" | |
# wl_dhcplss="/var/lib/dhcp3/dhcpd.leases" |
# wl_dhcplss="/var/lib/dhcp3/dhcpd.leases" | |
|
| |
wl_header_refresh="<html><head><meta HTTP-EQUIV=\"Refresh\" CONTENT=\"15\"><title>Wifimon @ `$wl_hnmcmd`</title></head><body BGCOLOR=\"#FFFFFF\" TEXT=\"#000000\"><pre>" |
wl_header_refresh="<html><head><meta HTTP-EQUIV=\"Refresh\" CONTENT=\"15\"><title>Wifimon @ `$wl_hnmcmd`</title></head><body BGCOLOR=\"#FFFFFF\" TEXT=\"#000000\"><pre>" | |
wl_header="<html><head><title>Wifimon @ `$wl_hnmcmd`</title></head><body BGCOLOR=\"#FFFFFF\" TEXT=\"#000000\"><pre>" |
wl_header="<html><head><title>Wifimon @ `$wl_hnmcmd`</title></head><body BGCOLOR=\"#FFFFFF\" TEXT=\"#000000\"><pre>" | |
Line 113... | Line 113... | |
else |
else | |
echo "$wl_dhcpcnf not found" |
echo "$wl_dhcpcnf not found" | |
wl_dhcpcnf="/dev/null" |
wl_dhcpcnf="/dev/null" | |
fi |
fi | |
|
| |
if [ -e $wl_dhcplss ] |
if [ ! -e $wl_dhcplss ] | |
then |
then | |
wl_nop=1 |
||
else |
||
echo "$wl_dhcplss not found" |
echo "$wl_dhcplss not found" | |
wl_dhcplss="/dev/null" |
wl_dhcplss="/dev/null" | |
fi |
fi | |
###################################################################### |
###################################################################### | |
|
|