How to make a Script to switch on/off wifi till internet starts working?
772
I'm unable to fix my wifi internet connection issue, so I thought instead of manually switching on/off wifi and reloading webpage until internet start working if it is possible through script?
while :
do
echo restarting network manager...
service network-manager restart
echo sleeping for 30 seconds...
sleep 30
echo trying to access a web page...
wget -O /dev/null vecka.nu && exit 0
done
The following seems to work: