18337SN/A#!/bin/sh 28337SN/A# 38337SN/A# $FreeBSD$ 48337SN/A# 58337SN/A 68337SN/A# If there is a global system configuration file, suck it in. 78337SN/A# 88337SN/Aif [ -r /etc/defaults/periodic.conf ] 98337SN/Athen 108337SN/A . /etc/defaults/periodic.conf 118337SN/A source_periodic_confs 128337SN/Afi 138337SN/A 148337SN/Acase "$daily_status_disks_enable" in 158337SN/A [Yy][Ee][Ss]) 168337SN/A echo "" 178337SN/A echo "Disk status:" 188337SN/A 198337SN/A if [ -n "${daily_status_disks_ignore}" ] ; then 208337SN/A ignore="egrep -v ${daily_status_disks_ignore}" 218337SN/A else 228337SN/A ignore="cat" 238337SN/A fi 248337SN/A (df $daily_status_disks_df_flags | ${ignore}) && rc=1 || rc=3 250SN/A 268337SN/A # display which filesystems need backing up 278337SN/A if [ -s /etc/dumpdates ]; then 288337SN/A if ! [ -f /etc/fstab ]; then 298337SN/A export PATH_FSTAB=/dev/null 308337SN/A fi 318337SN/A 328337SN/A echo "" 338337SN/A dump W || rc=3 348337SN/A fi 358337SN/A ;; 368337SN/A 378337SN/A *) rc=0;; 388337SN/Aesac 398337SN/A 408337SN/Aexit $rc 418337SN/A