check.d/{disks,ntp}: Only perform the checks if relevant programs exist.
[rcheck] / check.d / disks
index 63a541a..ef36835 100755 (executable)
@@ -3,6 +3,7 @@
 ### Check the health of attached physical disks.
 
 set -e
+if [ ! -x /usr/sbin/smartctl ]; then exit 0; fi
 
 ## Build a list of actual disk devices according to their buses.
 disks=