#	ATT:#ident	"initpkg:init.d/RMTMPFILES	1.1"	
	
#ident	"@(#)initpkg/init.d:RMTMPFILES	25.1"

#	Clean up temporary files.

set `who -r`
if [ $9 != "S" ]
then
	exit
fi

#  clean up /tmp
rm -f /tmp/*

# mkdir /tmp
# chmod 777 /tmp		lets not start removing dirs in /tmp
# chgrp sys /tmp
# chown sys /tmp

#  clean up /usr/tmp
rm -f /usr/tmp/*

# if [ -d /usr/tmp  -o  -d /usr/bin ]
# then	#	Conditional, so we won't make /usr/tmp if /usr file system
	#	did not mount successfully.  We check for /usr/bin in case
	#	/usr/tmp disappeared unexpectedly.
#	mkdir /usr/tmp
#	chmod 777 /usr/tmp
#	chgrp sys /usr/tmp
#	chown sys /usr/tmp
# fi
