1#!/bin/sh 2# 3# $FreeBSD: src/etc/periodic/daily/999.local,v 1.2.2.3 2001/08/01 20:38:03 obrien Exp $ 4# $DragonFly: src/etc/periodic/daily/999.local,v 1.2 2003/06/17 04:24:48 dillon Exp $ 5# 6# Run the old /etc/daily.local script. This is really for backwards 7# compatibility more than anything else. 8# 9 10# If there is a global system configuration file, suck it in. 11# 12if [ -r /etc/defaults/periodic.conf ] 13then 14 . /etc/defaults/periodic.conf 15 source_periodic_confs 16fi 17 18rc=0 19for script in $daily_local 20do 21 echo '' 22 case "$script" in 23 /*) 24 if [ -f "$script" ] 25 then 26 echo "Running $script:" 27 28 sh $script || rc=3 29 else 30 echo "$script: No such file" 31 [ $rc -lt 2 ] && rc=2 32 fi;; 33 *) 34 echo "$script: Not an absolute path" 35 [ $rc -lt 2 ] && rc=2;; 36 esac 37done 38 39exit $rc 40