prune dirs rm'd when cleaning tmp

This commit is contained in:
cgd 1993-05-03 10:52:21 +00:00
parent 742d81c095
commit 54e717e211
1 changed files with 2 additions and 1 deletions

3
etc/rc
View File

@ -120,7 +120,8 @@ echo clearing /tmp
# prune quickly with one rm, then use find to clean up /tmp/[lq]*
# (not needed with mfs /tmp, but doesn't hurt there...)
(cd /tmp && rm -rf [a-km-pr-zA-Z]* &&
find . ! -name . ! -name lost+found ! -name quotas -exec rm -rf -- {} \;)
find . ! -name . ! -name lost+found ! -name quotas \
-exec rm -rf -- {} \; -type d -prune)
if [ -d /var/account ]; then
echo 'turning on accounting'