02-24-2016, 11:31 PM
@updater: An option to change the update interval, that would be the most usefull option.
@Network connection testing: great idea
In lite control center, we used this method to check the connection to the internet:
Pinging Gooogle dns servers.
But if we use this method when google is down the script would not update. lol
@Network connection testing: great idea
In lite control center, we used this method to check the connection to the internet:
Pinging Gooogle dns servers.
Code:
ping -c 1 8.8.8.8 2>&1 | grep "connect: Network is unreachable" &>/dev/null
if [ $? = 1 ]; then
echo Active
else
echo Not connected
fi