Initial import from FreeBSD RELENG_4:
[games.git] / etc / periodic / weekly / 999.local
1 #!/bin/sh -
2 #
3 # $FreeBSD: src/etc/periodic/weekly/999.local,v 1.3.2.3 2001/08/01 20:41:28 obrien Exp $
4 #
5
6 # If there is a global system configuration file, suck it in.
7 #
8 if [ -r /etc/defaults/periodic.conf ]
9 then
10     . /etc/defaults/periodic.conf
11     source_periodic_confs
12 fi
13
14 rc=0
15 for script in $weekly_local
16 do
17     echo ''
18     case "$script" in
19         /*)
20             if [ -f "$script" ]
21             then
22                 echo "Running $script:"
23
24                 sh $script || rc=3
25             else
26                 echo "$script: No such file"
27                 [ $rc -lt 2 ] && rc=2
28             fi;;
29         *)
30             echo "$script: Not an absolute path"
31             [ $rc -lt 2 ] && rc=2;;
32     esac
33 done
34
35 exit $rc