security.d/chk_sensors

changeset 17
65656789da08
parent 14
59e07bba67cc
--- a/security.d/chk_sensors	Mon Feb 18 19:47:24 2013 +0100
+++ b/security.d/chk_sensors	Wed May 22 13:46:49 2013 +0200
@@ -1,12 +1,9 @@
 #!/bin/bash
 #
 #############################################################################
-# Copyright (C) 2005-2012
+# Copyright (C) 2005-2013
 #   
-# Michiel Broek               <mbse@mbse.eu>
-# Beekmansbos 10
-# 1971 BV IJmuiden
-# the Netherlands
+# Michiel Broek               <mbse at mbse.eu>
 #
 # This file is part of SlackSecCheckScripts.
 #
@@ -44,8 +41,8 @@
 if [ -x /usr/bin/sensors ]; then
     if [ ! -n "$(sensors -s 2>&1)" ]; then
 	result=`sensors 2>&1`
-	echo "$result"
 	if echo "$result" |grep -q "ALARM"; then
+	    echo "$result"
 	    echo ""
 	    echo "** WARNING: One or more sensors show ALARM! **"
 	fi

mercurial