=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/etc/daily,v retrieving revision 1.31 retrieving revision 1.32 diff -c -r1.31 -r1.32 *** src/etc/daily 2000/04/29 18:45:58 1.31 --- src/etc/daily 2000/05/26 14:51:31 1.32 *************** *** 1,6 **** #!/bin/sh - # ! # $OpenBSD: daily,v 1.31 2000/04/29 18:45:58 millert Exp $ # From: @(#)daily 8.2 (Berkeley) 1/25/94 # PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin --- 1,6 ---- #!/bin/sh - # ! # $OpenBSD: daily,v 1.32 2000/05/26 14:51:31 aaron Exp $ # From: @(#)daily 8.2 (Berkeley) 1/25/94 # PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin *************** *** 19,25 **** echo "" echo "Removing scratch and junk files:" ! if [ -d /tmp -a ! -h /tmp ]; then cd /tmp && { find -x . \( -name 'ssh-*' -o -name '.X11-unix' \) -prune -o \ -type f -atime +3 -execdir rm -f -- {} \; --- 19,25 ---- echo "" echo "Removing scratch and junk files:" ! if [ -d /tmp -a ! -L /tmp ]; then cd /tmp && { find -x . \( -name 'ssh-*' -o -name '.X11-unix' \) -prune -o \ -type f -atime +3 -execdir rm -f -- {} \; *************** *** 27,33 **** >/dev/null 2>&1; } fi ! if [ -d /var/tmp -a ! -h /var/tmp ]; then cd /var/tmp && { find -x . \( -name 'ssh-*' -o -name '.X11-unix' \) -prune -o \ ! -type d -atime +7 -execdir rm -f -- {} \; --- 27,33 ---- >/dev/null 2>&1; } fi ! if [ -d /var/tmp -a ! -L /var/tmp ]; then cd /var/tmp && { find -x . \( -name 'ssh-*' -o -name '.X11-unix' \) -prune -o \ ! -type d -atime +7 -execdir rm -f -- {} \; *************** *** 36,54 **** fi # Additional junk directory cleanup would go like this: ! #if [ -d /scratch -a ! -h /scratch ]; then # cd /scratch && { # find . ! -name . -atime +1 -execdir rm -f -- {} \; # find . ! -name . -type d -mtime +1 -execdir rmdir -- {} \; \ # >/dev/null 2>&1; } #fi ! if [ -d /var/preserve -a ! -h /var/preserve ]; then cd /var/preserve && { find . ! -name . -mtime +7 -execdir rm -f -- {} \; ; } fi ! if [ -d /var/rwho -a ! -h /var/rwho ] ; then cd /var/rwho && { find . ! -name . -mtime +7 -execdir rm -f -- {} \; ; } fi --- 36,54 ---- fi # Additional junk directory cleanup would go like this: ! #if [ -d /scratch -a ! -L /scratch ]; then # cd /scratch && { # find . ! -name . -atime +1 -execdir rm -f -- {} \; # find . ! -name . -type d -mtime +1 -execdir rmdir -- {} \; \ # >/dev/null 2>&1; } #fi ! if [ -d /var/preserve -a ! -L /var/preserve ]; then cd /var/preserve && { find . ! -name . -mtime +7 -execdir rm -f -- {} \; ; } fi ! if [ -d /var/rwho -a ! -L /var/rwho ] ; then cd /var/rwho && { find . ! -name . -mtime +7 -execdir rm -f -- {} \; ; } fi