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 1990630Sbrian df $daily_status_disks_df_flags && rc=1 || rc=3 2028263Spst 2161981Sbrian # display which filesystems need backing up 22237809Sjhb if [ -s /etc/dumpdates ]; then 23237809Sjhb if ! [ -f /etc/fstab ]; then 24237809Sjhb export PATH_FSTAB=/dev/null 25237809Sjhb fi 26237809Sjhb 27237809Sjhb echo "" 28237809Sjhb dump W || rc=3 29197552Scperciva fi 30237809Sjhb ;; 3161981Sbrian 3265843Sbrian *) rc=0;; 3361981Sbrianesac 3465843Sbrian 3565843Sbrianexit $rc 36