PORTNAME= smartmontools
PORTVERSION= 5.39
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= SF
echo
echo "Checking health of ${device}:"
${smartctl} ${daily_status_smartctl_flags} ${device} > "${tmpfile}"
${smartctl} ${daily_status_smartctl_flags} /dev/${device} > "${tmpfile}"
status=$?
if [ $((status & 3)) -ne 0 ]; then
rc=2