1#!/bin/sh 2# 3# $FreeBSD$ 4# 5 6# If there is a global system configuration file, suck it in. 7# 8if [ -r /etc/defaults/periodic.conf ] 9then 10 . /etc/defaults/periodic.conf 11 source_periodic_confs 12fi 13 14case "$daily_status_disks_enable" in 15 [Yy][Ee][Ss]) 16 echo "" 17 echo "Disk status:" 18 19 df $daily_status_disks_df_flags && rc=1 || rc=3 20 21 # display which filesystems need backing up 22 if [ -s /etc/dumpdates ]; then 23 if ! [ -f /etc/fstab ]; then 24 export PATH_FSTAB=/dev/null 25 fi 26 27 echo "" 28 dump W || rc=3 29 fi 30 ;; 31 32 *) rc=0;; 33esac 34 35exit $rc 36