diff options
author | root <root@rshg054.dnsready.net> | 2012-08-08 00:02:17 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-08-08 00:02:17 +0000 |
commit | 6c114b503b2456476f22ff6bdb2b45cac8dac612 (patch) | |
tree | 663d91755132361628dec7a42b77734ecf7b36b7 /extra/lm_sensors/healthd | |
parent | 9d36fcd5638035abf19f303deebd9e861d384254 (diff) |
Wed Aug 8 00:02:17 UTC 2012
Diffstat (limited to 'extra/lm_sensors/healthd')
-rw-r--r-- | extra/lm_sensors/healthd | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/extra/lm_sensors/healthd b/extra/lm_sensors/healthd index 0315dd788..5ffed5681 100644 --- a/extra/lm_sensors/healthd +++ b/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 |