3 # $NetBSD: cleartmp,v 1.4 2002/03/22 04:33:58 thorpej Exp $
4 # $FreeBSD: src/etc/rc.d/cleartmp,v 1.4 2002/10/12 10:31:31 schweikh Exp $
5 # $DragonFly: src/etc/rc.d/cleartmp,v 1.3 2004/01/26 17:21:15 rob Exp $
16 rcvar=`set_rcvar clear_tmp`
17 start_cmd="cleartmp_start"
24 # Prune quickly with one rm, then use find to clean up
25 # /tmp/[lq]* (this is not needed with mfs /tmp, but
26 # doesn't hurt anything).
28 (cd /tmp && rm -rf [a-km-pr-zA-Z]* &&
29 find -x . ! -name . ! -name lost+found ! -name quota.user \
30 ! -name quota.group -exec rm -rf -- {} \; -type d -prune)
32 # Remove X lock files, since they will prevent you from
37 mkdir -m 1777 /tmp/.X11-unix