5 # Remove garbage files more than $daily_clean_disks_days days old
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 "$daily_clean_disks_enable" in
18 if [ -z "$daily_clean_disks_days" ]
20 echo '$daily_clean_disks_enable is set but' \
21 '$daily_clean_disks_days is not'
23 elif [ -z "$daily_clean_disks_files" ]
25 echo '$daily_clean_disks_enable is set but' \
26 '$daily_clean_disks_files is not'
30 echo "Cleaning disks:"
32 args="$args -name "`echo "$daily_clean_disks_files" |
35 -e 's/[ ][ ]*/ -o -name /g'`
37 case "$daily_clean_disks_verbose" in
44 rc=$(find / \( ! -fstype local -o -fstype rdonly \) -a -prune -o \
45 \( $args \) -atime +$daily_clean_disks_days -delete $print |
46 tee /dev/stderr | wc -l)
47 [ -z "$print" ] && rc=0