xref: /dragonfly/etc/periodic/weekly/999.local (revision 7d3e9a5b)
1#!/bin/sh -
2#
3# $FreeBSD: head/etc/periodic/weekly/999.local 313069 2017-02-01 23:22:54Z asomers $
4#
5
6# If there is a global system configuration file, suck it in.
7#
8if [ -r /etc/defaults/periodic.conf ]
9then
10    . /etc/defaults/periodic.conf
11    source_periodic_confs
12fi
13
14rc=0
15for script in $weekly_local
16do
17    echo ''
18    case "$script" in
19	/*)
20	    if [ -x "$script" ]
21	    then
22		echo "Running $script:"
23
24		$script || rc=3
25	    elif [ -f "$script" ]
26	    then
27		echo "Running $script:"
28
29		sh $script || rc=3
30	    fi;;
31	*)
32	    echo "$script: Not an absolute path"
33	    [ $rc -lt 2 ] && rc=2;;
34    esac
35done
36
37exit $rc
38