Im very new to shell scripting.
I´ve made a shell script to check my isp link .
Code:
#!/bin/sh
. /etc/dhcpdpc/dhcpcd-eth0.info
if ! ping -qnc 1 $GATEWAY ; then
/usr/sbin/renet
fi
But i dont want the output from the ping cmd.
How can i do just that?
And how do i check eth0 is up?
And i want to check it every 5 minutes , what the best way to do that?