Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 15 lines (12 sloc) 350 Bytes
#!/bin/bash
. ~/.shell-colors
echo -e "$yell CHECKING THE WIFI CONNECTION AND SIGNAL STRENGTH \n$cyan"
printf "\t A" && iwconfig wlan0 | grep -i access | cut -d "A" -f2
conn=`iwconfig wlan0 | grep -i quality`
if [ "$conn" = "" ]; then
printf "\t\t$yell NOT$red CONNECTED! ! ! \n\n"
else
printf "$conn \n"
fi
printf "$reset \n\n"
exit 0