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 - download

⟦6ccc9609a⟧ TextFile

    Length: 5824 (0x16c0)
    Types: TextFile
    Notes: UNIX file
    Names: »INSTALL2«

Derivation

└─⟦2cfcd94e5⟧ Bits:30004151 SW95705I 386/ix Multi-User Rel 1.2 boot
└─⟦2cfcd94e5⟧ UNIX Filesystem
    └─ ⟦this⟧ »INSTALL2« 

TextFile

#ident  "@(#)INSTALL2.2	1.6 - 88/05/17"

# This script is the second stage of the installation procedure for
# System V.3 on the Intel AT/386.  It runs on the hard disk and uses
# cpio to bring in the system files and commands from floppy disks.
# Tape is supported as an option for future release compatibility.

/etc/kdinit
set -e                  # exit if anything bad happens
echo
echo "About to install Unix system files and commands.\n"
echo
cp unix unix.atinst
while read pnam
do
if [ "$pnam" = "usr" ]
then /etc/mount /dev/dsk/0s3 /usr
     break
fi
done < addparts
set +x
set +e
echo
echo "Are you installing from tape (y/n)? \c"
read a
echo
if [ "$a" = y ]
then
	echo "Insert System Installation Tape in drive and press <RETURN>▶07◀"
	read a
	ln /bin/cpio /bin/stream /etc/init /shlib/libc_s /tmp
	stream /dev/tape - | cpio -icmdu
	sync
else
	for ii in 1 2 3 4 5
	do
	echo "Insert Core Base Disk" $ii "in drive and press <RETURN>▶07◀ \c"
	read a
	cpio -iBcmdu </dev/rdsk/f0q15dt 2>/dev/null
	while [ $? -ne 0 ]
	do
		echo "ERROR ENCOUNTERED reading disk!!!▶07◀"
		echo "Do you wish to re-try installation disk" $ii "(y/n)? \c"
		read a
		if [ "$a" = "n" ]
		then    echo "Installation will continue... (some commands/files may be missing)"
			break
		fi
		echo "Retrying disk" $ii "(error/completion message wil be displayed)"
		cpio -iBcmdu </dev/rdsk/f0q15dt
	done
	sync
	done
fi

#	Create links that were not recorded on the cb diskettes.

while read fil
do
	rm -f $fil >/dev/null 2>&1
done <<EOT
/bin/red
/bin/i286
/bin/pdp11
/bin/u370
/bin/u3b
/bin/u3b15
/bin/u3b2
/bin/u3b5
/bin/vax
/bin/true
/bin/rmail
/bin/sh
/bin/telinit
/dev/syscon
/dev/systty
/dev/SA/f0d9d
/dev/SA/f0d9dt
/dev/SA/f0q15d
/dev/SA/diskette
/dev/SA/f0q15dt
/dev/lp0
/dev/rmt/0mn
/dev/rnmt0
/dev/rmt/0m
/dev/rmt0
/dev/root
/dev/swap
/dev/tape
/dev/rSA/f0d9d
/dev/rSA/f0d9dt
/dev/rSA/f0q15d
/dev/rSA/diskette
/dev/rSA/f0q15dt
/etc/rc0.d/K00ANNOUNCE
/etc/rc2.d/S01MOUNTFSYS
/etc/rc2.d/S05RMTMPFILES
/etc/rc0.d/K22acct
/etc/rc2.d/S22acct
/etc/rc0.d/K75cron
/etc/rc2.d/S75cron
/etc/rc2.d/S20sysetup
/usr/admin/profile.dot
/usr/bin/makefsys
/usr/bin/mountfsys
/usr/bin/powerdown
/usr/bin/setup
/usr/bin/sysadm
/usr/bin/umountfsys
/usr/bin/dosdir
/usr/bin/doserase
/usr/bin/dosformat
/usr/bin/dosget
/usr/bin/dosmkdir
/usr/bin/dosput
/usr/bin/dosrename
/usr/bin/dosrmdir
/usr/bin/dostype
/usr/bin/doscopy
/usr/bin/lef
/usr/bin/utod
/usr/bin/ex
/usr/bin/vedit
/usr/bin/vi
/usr/bin/view
/usr/lib/terminfo/a/at386
EOT

while read fil target
do
	/bin/ln ${fil} ${target} >/dev/null 2>&1
done <<EOT
/bin/ed /bin/red
/bin/false /bin/i286
/bin/false /bin/pdp11
/bin/false /bin/u370
/bin/false /bin/u3b
/bin/false /bin/u3b15
/bin/false /bin/u3b2
/bin/false /bin/u3b5
/bin/false /bin/vax
/bin/i386 /bin/true
/bin/mail /bin/rmail
/bin/rsh /bin/sh
/dev/console /dev/syscon
/dev/console /dev/systty
/dev/dsk/0s1 /dev/root
/dev/dsk/0s2 /dev/swap
/dev/dsk/f0q15dt /dev/SA/diskette
/dev/lp /dev/lp0
/dev/ntape /dev/rmt/0mn
/dev/ntape /dev/rnmt0
/dev/rSA/tape /dev/rmt/0m
/dev/rSA/tape /dev/rmt0
/dev/rSA/tape /dev/tape
/dev/rdsk/f0q15dt /dev/rSA/diskette
/etc/init /bin/telinit
/etc/init.d/ANNOUNCE /etc/rc0.d/K00ANNOUNCE
/etc/init.d/MOUNTFSYS /etc/rc2.d/S01MOUNTFSYS
/etc/init.d/RMTMPFILES /etc/rc2.d/S05RMTMPFILES
/etc/init.d/acct /etc/rc0.d/K22acct
/etc/init.d/acct /etc/rc2.d/S22acct
/etc/init.d/cron /etc/rc0.d/K75cron
/etc/init.d/cron /etc/rc2.d/S75cron
/etc/init.d/sysetup /etc/rc2.d/S20sysetup
/usr/admin/.profile /usr/admin/profile.dot
/usr/bin/checkfsys /usr/bin/makefsys
/usr/bin/checkfsys /usr/bin/mountfsys
/usr/bin/checkfsys /usr/bin/powerdown
/usr/bin/checkfsys /usr/bin/setup
/usr/bin/checkfsys /usr/bin/sysadm
/usr/bin/checkfsys /usr/bin/umountfsys
/usr/bin/dossette /usr/bin/dosdir
/usr/bin/dossette /usr/bin/doserase
/usr/bin/dossette /usr/bin/dosformat
/usr/bin/dossette /usr/bin/dosget
/usr/bin/dossette /usr/bin/dosmkdir
/usr/bin/dossette /usr/bin/dosput
/usr/bin/dossette /usr/bin/dosrename
/usr/bin/dossette /usr/bin/dosrmdir
/usr/bin/dossette /usr/bin/doscopy
/usr/bin/dossette /usr/bin/dostype
/usr/bin/dtou /usr/bin/lef
/usr/bin/dtou /usr/bin/utod
/usr/bin/edit /usr/bin/ex
/usr/bin/edit /usr/bin/vedit
/usr/bin/edit /usr/bin/vi
/usr/bin/edit /usr/bin/view
/usr/lib/terminfo/A/AT386 /usr/lib/terminfo/a/at386
EOT

for ii in 0 1 2 3 4 5 6 7 8 9
do
	/bin/rm -f /dev/sxt/00${ii} /dev/sxt00${ii} >/dev/null 2>&1
	: /etc/mknod /dev/sxt/00${ii} c 14 ${ii} >/dev/null 2>&1
	: /bin/ln /dev/sxt/00${ii} /dev/sxt00${ii} >/dev/null 2>&1
done

for ii in 10 11 12 13 14 15 16 17 18 19 20 \
	  21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 \
	  42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
do
	/bin/rm -f /dev/sxt/0${ii} /dev/sxt0${ii} >/dev/null 2>&1
	: /etc/mknod /dev/sxt/0${ii} c 14 ${ii} >/dev/null 2>&1
	: /bin/ln /dev/sxt/0${ii} /dev/sxt0${ii} >/dev/null 2>&1
done

: /bin/chmod 0622 /dev/sxt/???

/bin/rm -f /usr/options/UD.name >/dev/null 2>&1
/bin/rm -f /usr/options/U1.name >/dev/null 2>&1
/bin/rm -f /usr/options/U2.name >/dev/null 2>&1
/bin/rm -f /usr/options/U3.name >/dev/null 2>&1

# For License Control
[ -d /usr/options ] || mkdir -p /usr/options
echo 3 >/usr/options/.license

set -e

while read pnam
do
if [ "$pnam" = "usr" ]
then
	echo "/dev/dsk/0s3 /usr" >>/etc/fstab
	/etc/umount /dev/dsk/0s3
fi
done < addparts

while read pnam
do
if [ "$pnam" = "usr2" ]
then
	mkdir /usr2
	echo "/dev/dsk/0s4 /usr2" >>/etc/fstab
fi
done < addparts

rm -f /.profile /addparts /floppy.count
# mv /unix.atinst /unix
rm -f /unix.*
cat /etc/kdinit >> /etc/rcinit
rm -f /etc/kdinit
chmod +x /etc/rcinit
mv /etc/rc2.d/S22acct /etc/rc2.d/+S22acct
mv /etc/rc0.d/K22acct /etc/rc0.d/+K22acct
echo
echo
echo "Unix has been installed on the hard disk."
echo "System will now be shut down.  Re-boot to run."
sync
sync
sleep 5
sync
uadmin 2 0