MFC rev 1.89:
[dragonfly.git] / etc / periodic / daily / 999.local
blob63e9a3a0de2b0dab6f17db31ab67332391338f01
1 #!/bin/sh
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 $
6 # Run the old /etc/daily.local script. This is really for backwards
7 # compatibility more than anything else.
10 # If there is a global system configuration file, suck it in.
12 if [ -r /etc/defaults/periodic.conf ]
13 then
14 . /etc/defaults/periodic.conf
15 source_periodic_confs
18 rc=0
19 for script in $daily_local
21 echo ''
22 case "$script" in
23 /*)
24 if [ -f "$script" ]
25 then
26 echo "Running $script:"
28 sh $script || rc=3
29 else
30 echo "$script: No such file"
31 [ $rc -lt 2 ] && rc=2
32 fi;;
34 echo "$script: Not an absolute path"
35 [ $rc -lt 2 ] && rc=2;;
36 esac
37 done
39 exit $rc