diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2010-03-10 13:12:53 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2010-03-10 13:12:53 +0000 |
commit | 6ecdd1e9a27e6c0b14e5fc76d765631440bf36de (patch) | |
tree | fb01c4c6f9e62b7579f62f6e1f5e154a33d225f5 /sysutils/smartmontools/files | |
parent | 3a0f4b6a8e4d76559451f1acd425e839d49432f7 (diff) | |
download | ports-6ecdd1e9a27e6c0b14e5fc76d765631440bf36de.tar.gz ports-6ecdd1e9a27e6c0b14e5fc76d765631440bf36de.zip |
Notes
Diffstat (limited to 'sysutils/smartmontools/files')
-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} \ |