1997-08-16 17:04:02 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
1999-08-27 23:37:10 +00:00
|
|
|
# $FreeBSD$
|
1997-08-16 17:04:02 +00:00
|
|
|
#
|
|
|
|
# Local cleanup of UUCP files. This is for backwards compatibility,
|
|
|
|
# /etc/uuclean.daily doesn't exist by default.
|
|
|
|
#
|
1997-08-17 17:55:45 +00:00
|
|
|
|
2000-06-23 01:18:31 +00:00
|
|
|
# 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
|
1997-08-16 17:04:02 +00:00
|
|
|
fi
|
|
|
|
|
2000-06-23 01:18:31 +00:00
|
|
|
case "$daily_uuclean_enable" in
|
|
|
|
[Yy][Ee][Ss])
|
|
|
|
if [ -d /var/spool/uucp -a -f /etc/uuclean.daily ]
|
|
|
|
then
|
|
|
|
echo ""
|
|
|
|
echo "Cleaning up UUCP:"
|
|
|
|
|
|
|
|
echo /etc/uuclean.daily | su -m uucp
|
|
|
|
fi;;
|
|
|
|
esac
|