git.cweiske.de
/
usb-wde1-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35171f9
)
check startzeichen
author
Christian Weiske
<cweiske@cweiske.de>
Tue, 8 Feb 2011 18:16:00 +0000
(19:16 +0100)
committer
Christian Weiske
<cweiske@cweiske.de>
Tue, 8 Feb 2011 18:16:00 +0000
(19:16 +0100)
munin/usb-wde1_
patch
|
blob
|
history
diff --git
a/munin/usb-wde1_
b/munin/usb-wde1_
index a6f37419909ce5f3757f5fb6664debeece6c66c7..9bd730fb2b09b5e614a2b0bd0a6808422e973fb7 100755
(executable)
--- 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