prune dirs rm'd when cleaning tmp
This commit is contained in:
parent
742d81c095
commit
54e717e211
3
etc/rc
3
etc/rc
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue