3 # $FreeBSD: src/etc/periodic/weekly/300.uucp,v 1.3.2.2 2000/09/20 02:46:17 jkh Exp $
5 # This is really here for backwards compatibility, clean.weekly is not
6 # created by default anymore.
8 # If there is a global system configuration file, suck it in.
10 if [ -r /etc/defaults/periodic.conf ]
12 . /etc/defaults/periodic.conf
16 case "$weekly_uucp_enable" in
18 if [ ! -d /var/spool/uucp ]
20 echo '$weekly_uucp_enable is set but /var/spool/uucp' \
23 elif [ ! -x /usr/libexec/uucp/clean.weekly ]
25 echo '$weekly_uucp_enable is set but' \
26 "/usr/libexec/uucp/clean.weekly isn't executable"
30 echo "Cleaning up UUCP:"
32 echo /usr/libexec/uucp/clean.weekly | su -m daemon && rc=0 || rc=3