diff options
Diffstat (limited to 'etc/periodic/monthly/999.local')
-rwxr-xr-x | etc/periodic/monthly/999.local | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/etc/periodic/monthly/999.local b/etc/periodic/monthly/999.local index 75fbebdb169a..b5d8aeda1c25 100755 --- a/etc/periodic/monthly/999.local +++ b/etc/periodic/monthly/999.local @@ -2,9 +2,25 @@ # # $FreeBSD$ # -if [ -f /etc/monthly.local ]; then - echo "" - echo "Running monthly.local:" - sh /etc/monthly.local +# If there is a global system configuration file, suck it in. +# +if [ -r /etc/defaults/periodic.conf ] +then + . /etc/defaults/periodic.conf + source_periodic_confs fi + +for script in $monthly_local +do + case "$script" in + /*) + if [ -f "$script" ] + then + echo "" + echo "Running $script:" + + sh $script + fi;; + esac +done |