Removed /etc from whereis-path

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

View File

@@ -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