1#!/bin/sh 2# 3# 4 5# If there is a global system configuration file, suck it in. 6# 7if [ -r /etc/defaults/periodic.conf ] 8then 9 . /etc/defaults/periodic.conf 10 source_periodic_confs 11fi 12 13case "$daily_status_mfi_enable" in 14 [Yy][Ee][Ss]) 15 echo 16 echo 'Checking status of mfi(4) devices:' 17 18 if mfiutil show volumes; then 19 if mfiutil show volumes | grep -q DEGRADED; then 20 rc=3 21 else 22 rc=0 23 fi 24 else 25 rc=2 26 fi 27 ;; 28 29 *) rc=0;; 30esac 31 32exit $rc 33