pkgsrc/sysutils/munin-node/patches/patch-ag
2006-11-19 10:02:09 +00:00

13 lines
569 B
Text

$NetBSD: patch-ag,v 1.1 2006/11/19 10:02:10 wiz Exp $
--- node/node.d/foldingathome_rank.in.orig 2004-12-09 20:19:57.000000000 +0000
+++ node/node.d/foldingathome_rank.in
@@ -31,7 +31,7 @@ if [ "$1" = "config" ]; then
fi
rank=`wget "http://vspx27.stanford.edu/cgi-bin/main.py?qtype=userpage&username=8d" -q -t 1 -T 5 -O - | egrep "<TD> <font size=3> <b> [0-9]* </b> of [0-9]* </font></TD>" | sed 's/.*<font size=3> <b> \([0-9]*\) .*/\1/'`
-if [ "$rank" == "" ]; then
+if [ "$rank" = "" ]; then
if [ -f $statefile ]; then
echo rank.value `cat $statefile`
fi