1#!/bin/sh 2#
| 1#!/bin/sh 2#
|
3# $FreeBSD: head/etc/periodic/daily/400.status-disks 197552 2009-09-28 03:32:35Z cperciva $
| 3# $FreeBSD: head/etc/periodic/daily/400.status-disks 237337 2012-06-20 20:01:51Z jhb $
|
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
| 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 ! [ -f /etc/fstab ]; then 23 export PATH_FSTAB=/dev/null
| 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
|
24 fi
| 29 fi
|
| 30 ;;
|
25
| 31
|
26 echo "" 27 dump W || rc=3;; 28
| |
29 *) rc=0;; 30esac 31 32exit $rc
| 32 *) rc=0;; 33esac 34 35exit $rc
|