Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids. Most
[dragonfly.git] / etc / periodic / daily / 320.rdist
1 #!/bin/sh
2 #
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 $
5 #
6
7 # If there is a global system configuration file, suck it in.
8 #
9 if [ -r /etc/defaults/periodic.conf ]
10 then
11     . /etc/defaults/periodic.conf
12     source_periodic_confs
13 fi
14
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:"
25
26             rdist -f /etc/Distfile && rc=0 || rc=3
27         fi;;
28
29     *)  rc=0;;
30 esac
31
32 exit $rc