Sync usage() with arp.8
[dragonfly.git] / etc / periodic / daily / 400.status-disks
blob430f8f719742fb5ddd00d0da9f12220b905c2ce5
1 #!/bin/sh
3 # $FreeBSD: src/etc/periodic/daily/400.status-disks,v 1.2.2.3 2002/03/06 12:14:16 brian Exp $
4 # $DragonFly: src/etc/periodic/daily/400.status-disks,v 1.2 2003/06/17 04:24:48 dillon Exp $
7 # If there is a global system configuration file, suck it in.
9 if [ -r /etc/defaults/periodic.conf ]
10 then
11 . /etc/defaults/periodic.conf
12 source_periodic_confs
15 case "$daily_status_disks_enable" in
16 [Yy][Ee][Ss])
17 echo ""
18 echo "Disk status:"
20 df $daily_status_disks_df_flags && rc=1 || rc=3
22 # display which filesystems need backing up
24 echo ""
25 dump W || rc=3;;
27 *) rc=0;;
28 esac
30 exit $rc