Adjust path for the upcoming 2.0 release
[dragonfly.git] / etc / periodic / weekly / 999.local
blob5ef9340e20ad4c300a9444cb0aede0899f2bce9c
1 #!/bin/sh -
3 # $FreeBSD: src/etc/periodic/weekly/999.local,v 1.3.2.3 2001/08/01 20:41:28 obrien Exp $
4 # $DragonFly: src/etc/periodic/weekly/999.local,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 rc=0
16 for script in $weekly_local
18 echo ''
19 case "$script" in
20 /*)
21 if [ -f "$script" ]
22 then
23 echo "Running $script:"
25 sh $script || rc=3
26 else
27 echo "$script: No such file"
28 [ $rc -lt 2 ] && rc=2
29 fi;;
31 echo "$script: Not an absolute path"
32 [ $rc -lt 2 ] && rc=2;;
33 esac
34 done
36 exit $rc