Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'A bash script to speak network status' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A bash script to speak network status
Authored by: cbt on Feb 06, '06 12:24:42PM


You can also check your route table for a default route:
if (netstat -rn | grep -q ^default) ; then
  echo "Default route exists (we're online)."
  echo "Default route doesn't exists (we're NOT online)."

The route deamon should update the routing table when the connection is lost.


[ Reply to This | # ]