6 # If there is a global system configuration file, suck it in.
8 if [ -r /etc/defaults/periodic.conf ]
10 . /etc/defaults/periodic.conf
14 case "$daily_status_ata_raid_enable" in
17 echo 'Checking status of ATA raid partitions:'
20 for raid in `find /dev/ -name 'ar[0-9]*' -type c | egrep '[0-9]$' \
21 | egrep -v 's[0-9]' | cut -d / -f 3`
23 status=`/sbin/atacontrol status $raid`
25 raid_rc=`echo $status | grep -v READY | wc -l`
26 [ $rc -eq 0 ] && [ $raid_rc -gt 0 ] && rc=3