1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-17 08:01:36 +00:00

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)
This commit is contained in:
Romain Tartière 2011-07-04 09:09:39 +00:00
parent b87e948956
commit 7c0d8674a8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=277034
2 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= smartmontools
PORTVERSION= 5.41
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= SF

View File

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