Re: find if eth0 up
Here is the script ... Enjoy
ISIT=`$IFCONFIG | grep "UP" | wc -l`;
if test $ISIT -gt 0;
echo "Yup ... $1 is up!";
echo "Nope ... No $1 or it'sn't up!";
Add a checker. You need one argument which is the device you're looking
Suppress the error message if no device is present in the system.
On Thu, 9 May 2002, Rory Campbell-Lange wrote:
> I'm trying to clarify my own question:
> What is the easiest way in bash to find if eth0 is up?
Jean-Francois Gobin - Administrateur gobinjf.be
To UNSUBSCRIBE, email to firstname.lastname@example.org
with a subject of "unsubscribe". Trouble? Contact email@example.com