3 # $NetBSD: cleartmp,v 1.4 2002/03/22 04:33:58 thorpej Exp $
8 # REQUIRE: mountcritremote tmp
15 rcvar=`set_rcvar clear_tmp`
16 start_cmd="cleartmp_start"
23 # Prune quickly with one rm, then use find to clean up
24 # /tmp/[lq]* (this is not needed with mfs /tmp, but
25 # doesn't hurt anything).
27 (cd /tmp && rm -rf [a-km-pr-zA-Z]* &&
28 find -x . ! -name . ! -name lost+found ! -name quota.user \
29 ! -name quota.group -exec rm -rf -- {} \; -type d -prune)
35 # Remove X lock files, since they will prevent you from
38 rm -f /tmp/.X[0-9]-lock
40 mkdir -m 1777 /tmp/.X11-unix