mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-15 14:56:13 +01:00
36 lines
532 B
Bash
Executable File
36 lines
532 B
Bash
Executable File
#!/bin/sh -
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# 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 $weekly_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
|