$NetBSD: patch-aj,v 1.1.1.1 2006/02/18 17:19:20 bouyer Exp $

--- plugins-scripts/check_log.sh.orig	2005-08-04 10:29:25.000000000 -0700
+++ plugins-scripts/check_log.sh	2005-08-04 10:29:54.000000000 -0700
@@ -201,7 +201,7 @@
 count=`$GREP -c "$query" $tempdiff`
 
 # Get the last matching entry in the diff file
-lastentry=`$GREP "$query" $tempdiff | $TAIL --lines=1`
+lastentry=`$GREP "$query" $tempdiff | $TAIL -n 1`
 
 $RM -f $tempdiff
 $CAT $logfile > $oldlog
