freebsd-skq/etc/periodic/daily/450.status-security
cjc ba1e7b8577 Long ago, there was just /etc/daily. Then /etc/security was split out
of /etc/daily. Some time later, /etc/daily became a set of periodic(8)
scripts. Now, this evolution continues, and /etc/security has been
broken into periodic(8) scripts to make local customization easier and
more maintainable.

Reviewed by:	ru
Approved by:	ru
2001-12-07 23:57:39 +00:00

41 lines
687 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
case "$daily_status_security_enable" in
[Yy][Ee][Ss])
echo ""
echo "Security check:"
case "$daily_status_security_inline" in
[Yy][Ee][Ss])
export security_output="";;
*)
export security_output="${daily_status_security_output}"
case "${daily_status_security_output}" in
"")
;;
/*)
echo " (output logged separately)";;
*)
echo " (output mailed separately)";;
esac;;
esac
periodic security
rc=$?;;
*) rc=0;;
esac
exit $rc