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