diff options
Diffstat (limited to 'sysutils/smartmontools/files/smart.in')
-rw-r--r-- | sysutils/smartmontools/files/smart.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sysutils/smartmontools/files/smart.in b/sysutils/smartmontools/files/smart.in index 713ece59b70d..17a85547a968 100644 --- a/sysutils/smartmontools/files/smart.in +++ b/sysutils/smartmontools/files/smart.in @@ -64,6 +64,9 @@ case "${daily_status_smart_enable}" in elif [ $((status & 3)) -ne 0 ]; then rc=2 ${trim_junk} "${tmpfile}" + elif [ `grep -c '^SMART support is: Unavailable' ${tmpfile}` -eq 1 ] ; then + rc=2 + echo "N/A" else rc=1 ${smartctl} ${devflags} ${daily_status_smartctl_extra_status_flags} \ |