1#!/bin/sh - 2# 3# 4 5# If there is a global system configuration file, suck it in. 6# 7if [ -r /etc/defaults/periodic.conf ] 8then 9 . /etc/defaults/periodic.conf 10 source_periodic_confs 11fi 12 13rc=0 14for script in $monthly_local 15do 16 echo '' 17 case "$script" in 18 /*) 19 if [ -x "$script" ] 20 then 21 echo "Running $script:" 22 23 $script || rc=3 24 elif [ -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