#sccs	"@(#)fndetc:.cleanup	1.1"

# Clean out and initialize the mount table
> /etc/mnttab
devnm / | setmnt
/etc/mountable

# Clean out wtmp
> /etc/wtmp

if [ -x /usr/lib/ex3.7preserve ]
then
	# Do ex/vi saving
	/usr/lib/ex3.7preserve -
fi

# Clean up temp files, etc.
rm -rf /tmp/*
rm -rf /usr/tmp/*
rm -f /usr/spool/uucp/LCK*
rm -f /usr/spool/uucp/STST*
rm -f /usr/spool/uucp/LTMP*
rm -f /usr/spool/lp/SCHEDLOCK
rm -f /usr/spool/lp/FIFO

# Clean the /lost+found directory if one exists

#find /lost+found -mtime +7 -type d -exec rm -rf {} \; >/dev/null 2>&1
