]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - etc/periodic/daily/999.local
Introduce /etc/defaults/periodic.conf, similar in concept to rc.conf.
[FreeBSD/FreeBSD.git] / etc / periodic / daily / 999.local
1 #!/bin/sh
2 #
3 # $FreeBSD$
4 #
5 # Run the old /etc/daily.local script.  This is really for backwards
6 # compatibility more than anything else.
7 #
8
9 # If there is a global system configuration file, suck it in.
10 #
11 if [ -r /etc/defaults/periodic.conf ]
12 then
13     . /etc/defaults/periodic.conf
14     source_periodic_confs
15 fi
16
17 for script in $daily_local
18 do
19     case "$script" in
20         /*)
21             if [ -f "$script" ]
22             then
23                 echo ""
24                 echo "Running $script:"
25
26                 sh $script
27             fi;;
28     esac
29 done