chiark / gitweb /
check.d/{disks,ntp}: Only perform the checks if relevant programs exist.
[rcheck] / check.d / disks
index 63a541a57de26ea9e71a9efcad9f80c02afeb03a..ef3683541f69cf18e1c511e60e90667c862c0039 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=