DataMuseum.dk

Presents historical artifacts from the history of:

Regnecentalen RC-900

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Regnecentalen RC-900

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T e

⟦3c4e5bbba⟧ TextFile

    Length: 718 (0x2ce)
    Types: TextFile
    Names: »etc/init.d/RMTMPFILES «

Derivation

└─⟦ff5a9a1ac⟧ Bits:30004042/core3.imd SW95705I 386/ix Multi-user Release 1.2
    └─⟦this⟧ »etc/init.d/RMTMPFILES « 

TextFile

#	Copyright (c) 1984 AT&T
#	  All Rights Reserved

#	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
#	The copyright notice above does not evidence any
#	actual or intended publication of such source code.

#ident	"@(#)RMTMPFILES	1.2"
#	Clean up temporary files.

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

#  clean up /tmp
rm -rf /tmp
mkdir /tmp
chmod 777 /tmp
chgrp sys /tmp
chown sys /tmp

#  clean up /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.
	rm -rf /usr/tmp
	mkdir /usr/tmp
	chmod 777 /usr/tmp
	chgrp sys /usr/tmp
	chown sys /usr/tmp
fi