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# 11if [ -r /etc/defaults/periodic.conf ] 12then 13 . /etc/defaults/periodic.conf 14 source_periodic_confs 15fi 16 17rc=0 18for script in $daily_local 19do 20 echo '' 21 case "$script" in 22 /*) 23 if [ -x "$script" ] 24 then 25 echo "Running $script:" 26 27 $script || rc=3 28 elif [ -f "$script" ] 29 then 30 echo "Running $script:" 31 32 sh $script || rc=3 33 else 34 echo "$script: No such file" 35 [ $rc -lt 2 ] && rc=2 36 fi;; 37 *) 38 echo "$script: Not an absolute path" 39 [ $rc -lt 2 ] && rc=2;; 40 esac 41done 42 43exit $rc 44