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

⟦7049c2f25⟧ TextFile

    Length: 733 (0x2dd)
    Types: TextFile
    Names: »etc/fsanck «

Derivation

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

TextFile

#	@(#)	1.1
# Script to check root filesystem, periodically, at shutdown
# to catch any possible filesystem corruption early and correct.
#
PATH=/bin:/usr/bin:/etc		# make absolutely sure of PATH
LAST=/etc/.lastfsck

# see how long its been since the last fsck at shutdown.
	if [ ! -f $LAST ] ; then
		touch 0101000071 $LAST
	fi
	its_time=`find $LAST -mtime +0 -print`
	if [ -z "$its_time" ] ; then exit 0; fi

# get name of root filesystem
	rfs=`/etc/devnm / | tr -s "\040\011" "\011*" | cut -f1 | \
			sed -e "/swap/d" -e "s!^!/dev/!"`

# call fsck and update .lastfsck
	# echo "Checking root filesystem ($rfs)."
	touch $LAST; sync; sleep 7
	/etc/fsck -y -s -b $rfs > /dev/null 2>&1
# Using the -b option will force user to reboot.