999.local revision 303975
1#!/bin/sh 2# 3# $FreeBSD: releng/11.0/etc/periodic/daily/999.local 77592 2001-06-01 16:40:57Z dougb $ 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 [ -f "$script" ] 24 then 25 echo "Running $script:" 26 27 sh $script || rc=3 28 else 29 echo "$script: No such file" 30 [ $rc -lt 2 ] && rc=2 31 fi;; 32 *) 33 echo "$script: Not an absolute path" 34 [ $rc -lt 2 ] && rc=2;; 35 esac 36done 37 38exit $rc 39