check startzeichen
authorChristian Weiske <cweiske@cweiske.de>
Tue, 8 Feb 2011 18:16:00 +0000 (19:16 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Tue, 8 Feb 2011 18:16:00 +0000 (19:16 +0100)
munin/usb-wde1_

index a6f37419909ce5f3757f5fb6664debeece6c66c7..9bd730fb2b09b5e614a2b0bd0a6808422e973fb7 100755 (executable)
@@ -114,9 +114,14 @@ read -r startzeichen zustand zeitstempel\
     < "$logfile"
 IFS=$OLDIFS
 
     < "$logfile"
 IFS=$OLDIFS
 
-#FIXME: check startzeichen
+if [ "$startzeichen" != '$1' ]; then
+    echo Log line does not begin with \$1
+    exit 2
+fi
+
 #FIXME: check timestamp
 
 #FIXME: check timestamp
 
+
 if [ "$TYPE" = "temperature" ]; then
     varprefix=t
 else
 if [ "$TYPE" = "temperature" ]; then
     varprefix=t
 else