#!/bin/bash

while true ; do
sleep 1
if(iwconfig 2>&1 | grep k5nx1962 > /dev/null 2>&1) ; then
echo "The wifi is connteded"
else
echo "DISCONNECTED"
fi
done