From: Christian Weiske Date: Tue, 8 Feb 2011 18:16:00 +0000 (+0100) Subject: check startzeichen X-Git-Tag: v1.0.0~26 X-Git-Url: https://git.cweiske.de/usb-wde1-tools.git/commitdiff_plain/c4da1837f58e4232471a5be78b75a6f6330ada22 check startzeichen --- 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