aboutsummaryrefslogblamecommitdiff
path: root/etc/periodic/monthly/999.local
blob: a70a14f8258e24d4c680aa75148b22f2f69c7bc0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

           
           
 
 





                                                             
  
 
    








                                       



                                            
                


                                                

        

        
#!/bin/sh -
#
# $FreeBSD$
#

# 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

rc=0
for script in $monthly_local
do
    case "$script" in
	/*)
	    if [ -f "$script" ]
	    then
		echo ""
		echo "Running $script:"

		sh $script || rc=3
	    else
		echo "$script: No such file"
		[ $rc -lt 2 ] && rc=2
	    fi;;
	*)
	    echo "$script: Not an absolute path"
	    [ $rc -lt 2 ] && rc=2;;
    esac
done

exit $rc