128263Spst#!/bin/sh 228263Spst# 350472Speter# $FreeBSD$ 428263Spst# 528263Spst 661981Sbrian# If there is a global system configuration file, suck it in. 761981Sbrian# 861981Sbrianif [ -r /etc/defaults/periodic.conf ] 961981Sbrianthen 1061981Sbrian . /etc/defaults/periodic.conf 1161981Sbrian source_periodic_confs 1261981Sbrianfi 1328263Spst 1461981Sbriancase "$daily_status_disks_enable" in 1561981Sbrian [Yy][Ee][Ss]) 1661981Sbrian echo "" 1761981Sbrian echo "Disk status:" 1828263Spst 19290743Sdes if [ -n "${daily_status_disks_ignore}" ] ; then 20290743Sdes ignore="egrep -v ${daily_status_disks_ignore}" 21290743Sdes else 22290743Sdes ignore="cat" 23290743Sdes fi 24290743Sdes (df $daily_status_disks_df_flags | ${ignore}) && rc=1 || rc=3 2528263Spst 2661981Sbrian # display which filesystems need backing up 27237337Sjhb if [ -s /etc/dumpdates ]; then 28237337Sjhb if ! [ -f /etc/fstab ]; then 29237337Sjhb export PATH_FSTAB=/dev/null 30237337Sjhb fi 31237337Sjhb 32237337Sjhb echo "" 33237337Sjhb dump W || rc=3 34197552Scperciva fi 35237337Sjhb ;; 3661981Sbrian 3765843Sbrian *) rc=0;; 3861981Sbrianesac 3965843Sbrian 4065843Sbrianexit $rc 41