FreeBSD Bugzilla – Attachment 20119 Details for
Bug 35545
[periodic] [patch] enhanced periodic scripts: 100.clean-disks, 100.clean-tmps
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.17 KB, created by
D J Hawkey Jr
on 2002-03-04 20:20:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
D J Hawkey Jr
Created:
2002-03-04 20:20:01 UTC
Size:
1.17 KB
patch
obsolete
>--- 100.clean-disks.orig Mon Jan 28 07:13:17 2002 >+++ 100.clean-disks Mon Mar 4 13:18:35 2002 >@@ -33,6 +33,12 @@ > sed -e 's/^[ ]*//' \ > -e 's/[ ]*$//' \ > -e 's/[ ][ ]*/ -o -name /g'` >+ [ -n "$daily_clean_disks_excludes" ] && >+ excl="$excl ! -path "`echo "$daily_clean_disks_excludes" | >+ sed -e 's/^[ ]*//' \ >+ -e 's/[ ]*$//' \ >+ -e 's/[ ][ ]*/ -a ! -path /g'` && >+ excl="( $excl ) -a" > > case "$daily_clean_disks_verbose" in > [Yy][Ee][Ss]) >@@ -41,9 +47,21 @@ > print=;; > esac > >+ # $print is currently meaningless, but retained for if >+ # and when 'find' without "-print" actually inhibits output. >+ # $out is a hack until then. >+ >+ out=/var/run/_100_clean-disks_out.$$ > rc=$(find / \( ! -fstype local -o -fstype rdonly \) -a -prune -o \ >- \( $args \) -atime +$daily_clean_disks_days -delete $print | >- tee /dev/stderr | wc -l) >+ $excl \( $args \) -atime +$daily_clean_disks_days \ >+ -delete $print | tee $out | wc -l) >+ if [ -n "$print" ] >+ then >+ cat $out >+ else >+ echo " (output inhibited)" >+ fi >+ rm -f $out > [ -z "$print" ] && rc=0 > [ $rc -gt 1 ] && rc=1 > set -f glob
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 35545
: 20119 |
20120