summaryrefslogtreecommitdiffstats
path: root/abs/extra/lm_sensors/healthd
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-11-26 15:02:27 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-11-26 15:02:27 (GMT)
commit7176ab9b8afa3146f8aabe5097389d284308876f (patch)
tree645b99a8b1099d94c5917d3b66b2e546d9c4b4bb /abs/extra/lm_sensors/healthd
parentaad02c76cbfe04485a48b8cb45c4a2a3daa16326 (diff)
downloadlinhes_pkgbuild-7176ab9b8afa3146f8aabe5097389d284308876f.zip
linhes_pkgbuild-7176ab9b8afa3146f8aabe5097389d284308876f.tar.gz
linhes_pkgbuild-7176ab9b8afa3146f8aabe5097389d284308876f.tar.bz2
lmsensors: 3.3.3
Diffstat (limited to 'abs/extra/lm_sensors/healthd')
-rw-r--r--abs/extra/lm_sensors/healthd9
1 files changed, 8 insertions, 1 deletions
diff --git a/abs/extra/lm_sensors/healthd b/abs/extra/lm_sensors/healthd
index 0315dd7..5ffed56 100644
--- a/abs/extra/lm_sensors/healthd
+++ b/abs/extra/lm_sensors/healthd
@@ -4,7 +4,7 @@
# /usr/sbin/healthd
#
-. /etc/conf.d/healthd
+. /etc/healthd.conf
cmd="${ALARM_CMD}"
addr="${ADMIN_EMAIL}"
@@ -21,6 +21,13 @@ while [ $# -gt 0 ] ; do
esac
done
+case "${ALARM_RESET}" in
+ yes) /usr/bin/sensors > /dev/null
+ ;;
+ no) true
+ ;;
+esac
+
[ -n "${cmd}" ] && [ -n "$( which -- "${cmd%% *}" )" ] || \
[ -n "${addr}" ] || exit 1