=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/etc/daily,v retrieving revision 1.74 retrieving revision 1.75 diff -c -r1.74 -r1.75 *** src/etc/daily 2012/02/11 00:37:04 1.74 --- src/etc/daily 2012/12/11 17:09:50 1.75 *************** *** 1,5 **** # ! # $OpenBSD: daily,v 1.74 2012/02/11 00:37:04 krw Exp $ # From: @(#)daily 8.2 (Berkeley) 1/25/94 # # For local additions, create the file /etc/daily.local. --- 1,5 ---- # ! # $OpenBSD: daily,v 1.75 2012/12/11 17:09:50 ajacoutot Exp $ # From: @(#)daily 8.2 (Berkeley) 1/25/94 # # For local additions, create the file /etc/daily.local. *************** *** 143,148 **** --- 143,157 ---- done next_part "Checking subsystem status:" + for d in $(sysctl -n hw.disknames | grep -Eo '[sw]d[0-9]+'); do + if atactl ${d} 2>&1 | sed -n '/Device has enabled/,$p' | grep -q 'SMART feature set'; then + SMARTSTATUS=$(atactl ${d} smartstatus 2>&1 >/dev/null) + if [ "X${SMARTSTATUS}" != X"" ]; then + echo "" + echo "${d}: ${SMARTSTATUS}" + fi + fi + done if [ "X$VERBOSESTATUS" != X0 ]; then echo "" echo "disks:"