Internet Connectivity Indicicator on Unity

Posted by Sathish on Ask Ubuntu See other posts from Ask Ubuntu or by Sathish
Published on 2012-09-28T08:46:21Z Indexed on 2012/09/28 9:50 UTC
Read the original article Hit count: 274

How can I check whether my internet connection is active on Ubuntu. If I am connected to a wired or wi-fi network, the indicator applet shows that I'm connected. But there is now way to find out the internet is working or not. I have some problem in my internet connectivity and I frequently lose my connection. I found this link is useful

Internet connectivity indicator applet

But I don't know that where should I use this code!

#!/bin/bash

if ping -c 1 -W 2 google.com > /dev/null; then
 echo "Up"
else
 echo "Down"
fi

© Ask Ubuntu or respective owner

Related posts about unity

Related posts about indicator