NET diagnostic Plugins E1

tahir85pk

Super VIP
Messages
936
NET diagnostic Plugins E1


#!/bin/sh
date
echo "Begin_Testing router (192.168.8.1)"
data="`ping -c 1 192.168.8.1 | grep '100%'`"
if [ "$data" = "" ];
then
echo "Router OK"
else
echo "Router NOT WORK"
fi
echo "Begin_Testing internet (www.ping.eu)"
data="`ping -c 1 www.ping.eu | grep '100%'`"
if [ "$data" = "" ];
then
echo "Internet OK"
else
echo "Internet NOT WORK"
fi
echo "Begin_Testing sharing (***.***.***.***)"
data="`ping -c 1 ***.***.***.*** | grep '100%'`"
if [ "$data" = "" ];
then
echo "Sharing OK"
else
echo "Sharing NOT WORK"
fi

edit line data=****
 

lolo4

Registered
Messages
151
put 2 files in var/tuxbox/plugins - chmod 755 file .sh

if you want to test u're router
edit
192.168.8.1

if you want to test u're peers ip or dyndns
edit
***.***.***.***

easy no :D
 
Top