From 52670df1be821cee148b053970e24f7552dccad7 Mon Sep 17 00:00:00 2001 From: Jack-Benny Persson Date: Sat, 20 Sep 2014 10:47:26 +0200 Subject: [PATCH] Removed /etc from whereis-path --- HISTORY | 6 ++++++ check_temp.sh | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/HISTORY b/HISTORY index 7fef010..e3a87c5 100644 --- a/HISTORY +++ b/HISTORY @@ -17,3 +17,9 @@ Version 0.8: sensors output. On some machine you get two Core0 and two Core1 temps. Moved version history to it's own file, HISTORY +Version 0.94: + Lots of changes and bugfixes. A huge thank you to Ryan Loudfoot who + has fixed bugs and worked out a new way to detect the sensors-program. + In 0.94 I removed /etc from the whereis path as it didn't work for me + on my setup. It found the config-file for lm-sensors and tried to run + it. diff --git a/check_temp.sh b/check_temp.sh index d6f7868..6d8769f 100755 --- a/check_temp.sh +++ b/check_temp.sh @@ -33,11 +33,11 @@ # # ############################################################################### -VERSION="Version 0.93" +VERSION="Version 0.94" AUTHOR="(c) 2011 Jack-Benny Persson (jack-benny@cyberinfo.se)" # Sensor program -SENSORPROG=$(whereis -b -B /{bin,sbin,usr,etc} /{bin,sbin,usr,etc}/* -f sensors | awk '{print $2}') +SENSORPROG=$(whereis -b -B /{bin,sbin,usr} /{bin,sbin,usr}/* -f sensors | awk '{print $2}') # Ryan's note: utils.sh is installed with nagios-plugins in with the plugins # Check if utils.sh exists. This lets you use check_domain in a testing environment