3 # $FreeBSD: src/etc/periodic/weekly/300.uucp,v 1.3.2.2 2000/09/20 02:46:17 jkh Exp $
4 # $DragonFly: src/etc/periodic/weekly/Attic/300.uucp,v 1.2 2003/06/17 04:24:48 dillon Exp $
6 # This is really here for backwards compatibility, clean.weekly is not
7 # created by default anymore.
9 # If there is a global system configuration file, suck it in.
11 if [ -r /etc/defaults/periodic.conf ]
13 . /etc/defaults/periodic.conf
17 case "$weekly_uucp_enable" in
19 if [ ! -d /var/spool/uucp ]
21 echo '$weekly_uucp_enable is set but /var/spool/uucp' \
24 elif [ ! -x /usr/libexec/uucp/clean.weekly ]
26 echo '$weekly_uucp_enable is set but' \
27 "/usr/libexec/uucp/clean.weekly isn't executable"
31 echo "Cleaning up UUCP:"
33 echo /usr/libexec/uucp/clean.weekly | su -m daemon && rc=0 || rc=3