aboutsummaryrefslogblamecommitdiff
path: root/etc/periodic/daily/999.local
blob: 0e1f95c8d2a797bc386d1cc9fe0fbbb02ffe1a89 (plain) (tree)
1
2
3
4
5
6
7
8

         
                                                                                              



                                                                    
 





                                                             
  
 
    

                          
           



                               

                                       



                                            
                


                                                

        

        
#!/bin/sh
#
# $FreeBSD: src/etc/periodic/daily/999.local,v 1.5.36.1.6.1 2010/12/21 17:09:25 kensmith Exp $
#
# Run the old /etc/daily.local script.  This is really for backwards
# compatibility more than anything else.
#

# 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 $daily_local
do
    echo ''
    case "$script" in
	/*)
	    if [ -f "$script" ]
	    then
		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