summaryrefslogtreecommitdiffstats
path: root/abs/extra/lm_sensors/healthd
diff options
context:
space:
mode:
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