Removed /etc from whereis-path

This commit is contained in:
Jack-Benny Persson 2014-09-20 10:47:26 +02:00
parent fcb2be369d
commit 52670df1be
2 changed files with 8 additions and 2 deletions

View File

@ -17,3 +17,9 @@ Version 0.8:
sensors output. On some machine you get two Core0 and two Core1 temps. sensors output. On some machine you get two Core0 and two Core1 temps.
Moved version history to it's own file, HISTORY 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.

View File

@ -33,11 +33,11 @@
# # # #
############################################################################### ###############################################################################
VERSION="Version 0.93" VERSION="Version 0.94"
AUTHOR="(c) 2011 Jack-Benny Persson (jack-benny@cyberinfo.se)" AUTHOR="(c) 2011 Jack-Benny Persson (jack-benny@cyberinfo.se)"
# Sensor program # 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 # 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 # Check if utils.sh exists. This lets you use check_domain in a testing environment