Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids. Most
[dragonfly.git] / etc / periodic / daily / 999.local
1 #!/bin/sh
2 #
3 # $FreeBSD: src/etc/periodic/daily/999.local,v 1.2.2.3 2001/08/01 20:38:03 obrien Exp $
4 # $DragonFly: src/etc/periodic/daily/999.local,v 1.2 2003/06/17 04:24:48 dillon Exp $
5 #
6 # Run the old /etc/daily.local script.  This is really for backwards
7 # compatibility more than anything else.
8 #
9
10 # If there is a global system configuration file, suck it in.
11 #
12 if [ -r /etc/defaults/periodic.conf ]
13 then
14     . /etc/defaults/periodic.conf
15     source_periodic_confs
16 fi
17
18 rc=0
19 for script in $daily_local
20 do
21     echo ''
22     case "$script" in
23         /*)
24             if [ -f "$script" ]
25             then
26                 echo "Running $script:"
27
28                 sh $script || rc=3
29             else
30                 echo "$script: No such file"
31                 [ $rc -lt 2 ] && rc=2
32             fi;;
33         *)
34             echo "$script: Not an absolute path"
35             [ $rc -lt 2 ] && rc=2;;
36     esac
37 done
38
39 exit $rc