MFC: Use humanize_number(3) for -h and -H.
[dragonfly.git] / etc / periodic / daily / 320.rdist
blobb9ac84f4ab7721e9d175d2bab86ed1755d54fd41
1 #!/bin/sh
3 # $FreeBSD: src/etc/periodic/daily/320.rdist,v 1.3.2.2 2000/09/20 02:46:15 jkh Exp $
4 # $DragonFly: src/etc/periodic/daily/320.rdist,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_distfile_enable" in
16 [Yy][Ee][Ss])
17 if [ ! -f /etc/Distfile ]
18 then
19 echo '$daily_distfile_enable is set but /etc/Distfile' \
20 "doesn't exist"
21 rc=2
22 else
23 echo ""
24 echo "Running rdist with /etc/Distfile:"
26 rdist -f /etc/Distfile && rc=0 || rc=3
27 fi;;
29 *) rc=0;;
30 esac
32 exit $rc