Descripción: Este sencillo script le indica los valores de señal y ruido de su tarjeta inalámbrica WIFI.
Es útil para orientar antenas o analizar el rendimiento de una red.
Funcionará en cualquier modo que el dispositivo/driver soporte siempre que sea compatible su uso con iwconfig.
#!/bin/bash
HELP_MESSAGE()
{
clear;echo;echo "This script will show you the the signal quality of a wlan device until you"
echo "press control+c ,  if that info can be obtained with the iwconfig command."
echo;echo "This is useful when orienting an antenna or test your connection."
echo;echo "This script can use any mode your device support and will run without releasing"
echo "any established connection."
echo;echo "Usage: $0 DEV"
echo "where DEV is any of your wlan devices as wlan0, ath0, eth1...";echo
}
ERROR()
{
echo "Sorry, something went wrong. Try $0 --help" ; exit
}
RUN()
{
while true
do printf `date +%T`
iwconfig $1 | grep --ignore-case Link || ERROR
sleep 1s
done
}
if [ ! $1 ]
then HELP_MESSAGE
elif [ $1 == -h ]
then HELP_MESSAGE
elif [ $1 == --help ]
then HELP_MESSAGE
else RUN $1
fi
 
 
 
0 comentarios:
Publicar un comentario