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_disks_enable" in 14 [Yy][Ee][Ss]) 15 echo "" 16 echo "Disk status:" 17 18 if [ -n "${daily_status_disks_ignore}" ] ; then 19 ignore="egrep -v ${daily_status_disks_ignore}" 20 else 21 ignore="cat" 22 fi 23 (df $daily_status_disks_df_flags | ${ignore}) && rc=1 || rc=3 24 25 # display which filesystems need backing up 26 if [ -s /etc/dumpdates ]; then 27 if ! [ -f /etc/fstab ]; then 28 export PATH_FSTAB=/dev/null 29 fi 30 31 echo "" 32 dump W || rc=3 33 fi 34 ;; 35 36 *) rc=0;; 37esac 38 39exit $rc 40