diff options
author | romain <romain@FreeBSD.org> | 2011-07-04 17:09:39 +0800 |
---|---|---|
committer | romain <romain@FreeBSD.org> | 2011-07-04 17:09:39 +0800 |
commit | 50261665f83ce128b70905dce419f5c0035a4264 (patch) | |
tree | e64550f1fcb595ce66d3178501c7b009a14b2bac /sysutils | |
parent | 6057917e161a482b9b7439ea198ab1f5be379e54 (diff) | |
download | freebsd-ports-gnome-50261665f83ce128b70905dce419f5c0035a4264.tar.gz freebsd-ports-gnome-50261665f83ce128b70905dce419f5c0035a4264.tar.zst freebsd-ports-gnome-50261665f83ce128b70905dce419f5c0035a4264.zip |
Improve periodic script to display a short report when a disk attribute failed
in the past but is now back to normal.
PR: ports/158630
Submitted by: romain
Approved by: Alex Samorukov <samm@os2.kiev.ua> (maintainer)
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/smartmontools/Makefile | 1 | ||||
-rw-r--r-- | sysutils/smartmontools/files/smart.in | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/sysutils/smartmontools/Makefile b/sysutils/smartmontools/Makefile index c0bec1e450a8..867058c6f709 100644 --- a/sysutils/smartmontools/Makefile +++ b/sysutils/smartmontools/Makefile @@ -7,6 +7,7 @@ PORTNAME= smartmontools PORTVERSION= 5.41 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= SF diff --git a/sysutils/smartmontools/files/smart.in b/sysutils/smartmontools/files/smart.in index 005eeff00579..0e5b76cf9f89 100644 --- a/sysutils/smartmontools/files/smart.in +++ b/sysutils/smartmontools/files/smart.in @@ -63,6 +63,8 @@ case "${daily_status_smart_enable}" in status=$? if [ ${status} -eq 0 ]; then echo "OK" + elif [ ${status} -eq 32 ]; then + echo "OK (but has failed in the past)" elif [ $((status & 3)) -ne 0 ]; then rc=2 ${trim_junk} "${tmpfile}" |