git.cweiske.de
/
usb-wde1-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
check startzeichen
[usb-wde1-tools.git]
/
munin
/
usb-wde1_
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