#!/bin/bash
val=true
while true
do
#stat=`iwinfo wlan0 assoclist | grep -o B0:E2:35:C5:F5:0A`
stat="dsfsdf"
if [ -n "$stat" -a true = "$val" ]; then
echo $val
val=false
echo $stat
echo $val
elif [ -z "$stat" -a false = "$val" ]; then
val="true"
echo $stat
echo $val
fi
sleep 5
done
exit