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

⟦a22eaaf2f⟧ TextFile

    Length: 876 (0x36c)
    Types: TextFile
    Names: »etc/bcheckrc «

Derivation

└─⟦833723c12⟧ Bits:30004042/core5.imd SW95705I 386/ix Multi-user Release 1.2
    └─⟦this⟧ »etc/bcheckrc « 

TextFile


# ***** This file has those commands necessary to check the file
# system, date, and anything else that should be done before mounting
# the file systems.


#!	chmod +x ${file}


rootfs=/dev/root
/etc/fsstat ${rootfs}  >/dev/null 2>&1

if [ $? -ne 0 ]
then
	/etc/dumpsave
	echo "
	fsstat: root file system needs checking
         The root file system (${rootfs}) is being checked automatically."
	/etc/fsck -y -D -b ${rootfs}
fi


trap "" 2

# **** perform rc specific initialisations
[ -x /etc/rcinit ] && /etc/rcinit

# **** Check date

. /etc/TIMEZONE
while :
do
	if [ -x /etc/getclk ]
	then
		newdate=`/etc/getclk`
		if [ $? -eq 0 ]
		then
			date "$newdate"
			break
		fi
	fi
	echo "Is the date `date` correct? (y or n) \c"
	read reply
	if
		[ "$reply" = y ]
	then
		break
	else
		echo "Enter the correct date (MMDDhhmm[YY]):  \c"
		read reply
		date "$reply"
	fi
done