xref: /dragonfly/etc/periodic/monthly/999.local (revision 1de703da)
1#!/bin/sh -
2#
3# $FreeBSD: src/etc/periodic/monthly/999.local,v 1.2.2.3 2001/08/01 20:38:39 obrien Exp $
4# $DragonFly: src/etc/periodic/monthly/999.local,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#
9if [ -r /etc/defaults/periodic.conf ]
10then
11    . /etc/defaults/periodic.conf
12    source_periodic_confs
13fi
14
15rc=0
16for script in $monthly_local
17do
18    echo ''
19    case "$script" in
20	/*)
21	    if [ -f "$script" ]
22	    then
23		echo "Running $script:"
24
25		sh $script || rc=3
26	    else
27		echo "$script: No such file"
28		[ $rc -lt 2 ] && rc=2
29	    fi;;
30	*)
31	    echo "$script: Not an absolute path"
32	    [ $rc -lt 2 ] && rc=2;;
33    esac
34done
35
36exit $rc
37