summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rwxr-xr-xnoncore/tools/opie-sh/scripts/hostlist.sh2
1 files changed, 1 insertions, 1 deletions
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
@@ -21,13 +21,13 @@
CFG=/opt/QtPalmtop/share/config/hostlist.cfg
OPIE_SH=opie-sh
hostlist() {
( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/hostlist.png>"
echo "<h3>Hostlist</h3><br>"
- HOSTLIST=`cat $CFG`
+ HOSTLIST=`cat $CFG | grep -v '#'`
for HOST in $HOSTLIST
do
PT=` ping -c1 $HOST | grep avg|cut -d " " -f4-`
if [ "$PT" != "" ]
then echo "<b><font color=#00ff00> "
echo "$HOST is up<br></font></b>[$PT]<br>"