From 2ebb8c91374774171582f1a8ee4dbf4009a70615 Mon Sep 17 00:00:00 2001 From: spiralman Date: Fri, 18 Oct 2002 21:16:13 +0000 Subject: fixed hostlist.sh thanks to wolfgang enderlein, ping command fixed, and can now have comments in hostlist --- diff --git a/noncore/tools/opie-sh/scripts/hostlist.sh b/noncore/tools/opie-sh/scripts/hostlist.sh index 6575e9c..6d70793 100755 --- a/noncore/tools/opie-sh/scripts/hostlist.sh +++ b/noncore/tools/opie-sh/scripts/hostlist.sh @@ -24,10 +24,10 @@ OPIE_SH=opie-sh hostlist() { ( echo "" echo "

Hostlist


" - HOSTLIST=`cat $CFG` + HOSTLIST=`cat $CFG | grep -v '#'` for HOST in $HOSTLIST do - PT=` ping -c1 $HOST | grep avg|cut -d " " -f4-` + PT=` ping -c 1 $HOST | grep avg|cut -d " " -f4-` if [ "$PT" != "" ] then echo " " echo "$HOST is up
[$PT]
" -- cgit v0.9.0.2