aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2011-02-08 19:16:00 +0100
committerChristian Weiske <cweiske@cweiske.de>2011-02-08 19:16:00 +0100
commitc4da1837f58e4232471a5be78b75a6f6330ada22 (patch)
treed71340e8593fb422238672cac1f517c87da3d687
parent35171f9695f54d84d239c20cf3cca095a53ef569 (diff)
downloadusb-wde1-tools-c4da1837f58e4232471a5be78b75a6f6330ada22.tar.gz
usb-wde1-tools-c4da1837f58e4232471a5be78b75a6f6330ada22.zip
check startzeichen
-rwxr-xr-xmunin/usb-wde1_7
1 files changed, 6 insertions, 1 deletions
diff --git a/munin/usb-wde1_ b/munin/usb-wde1_
index a6f3741..9bd730f 100755
--- a/munin/usb-wde1_
+++ b/munin/usb-wde1_
@@ -114,9 +114,14 @@ read -r startzeichen zustand zeitstempel\
< "$logfile"
IFS=$OLDIFS
-#FIXME: check startzeichen
+if [ "$startzeichen" != '$1' ]; then
+ echo Log line does not begin with \$1
+ exit 2
+fi
+
#FIXME: check timestamp
+
if [ "$TYPE" = "temperature" ]; then
varprefix=t
else