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

⟦ab4395b01⟧ TextFile

    Length: 9388 (0x24ac)
    Types: TextFile
    Notes: UNIX file
    Names: »INSTALL2«

Derivation

└─⟦08d12fb7c⟧ Bits:30004153 SW95705I.2 386/ix Multi-User Rel 2.2 boot
└─⟦08d12fb7c⟧ UNIX Filesystem
    └─ ⟦this⟧ »INSTALL2« 

TextFile

#	@(#)INSTALL2	2.29 - 89/05/18

echo
echo "About to install 386/ix Operating System files and commands.\n"
echo
echo "Mounting filesystems ...\c"

trap 'trap "" 1 2 3 9 15;
	echo "You have aborted the installation of the 386/ix System.  \
If you wish\nto re-run it, type INSTALL at the prompt.  \
Please consult your\n\"Operations/System Administration Guide\" \
for further information."; umount /dev/dsk/0s3 > /dev/null 2>&1; exit 2' 1 2 3 15

stty erase '^h' echoe

# linen is a function to get line #n from file in arg1.
linen() {
if [ $# -ne 2 ] ; then
	return 1
fi
{
	x=1
	while read stuff
	do
	if [ $x -eq $2 ]
	then
	echo $stuff
	return 0
	fi
	x=`expr $x + 1`
	done < $1
}
return 0
}

cd /
set -e                  # exit if anything bad happens
upgrade=0
if [ -s /etc/UGpasswd ]
then
	upgrade=1
fi
if [ "$upgrade" = "0" ]
then
	/bin/cp /etc/fstab /etc/fstab.save
	while read devnm devsiz gap cylsiz pnam
	do
	if [ "$pnam" = "usr" ]
	then
	     set +e 		# don't exit if mount fails
	     /etc/mount $devnm /usr > /dev/null 2>&1
	     if [ $? != 0 ]
	     then /etc/fsck -y $devnm > /dev/null 2>&1
		  set -e	# Now if the mount fails BYE-BYE
		  /etc/mount $devnm /usr > /dev/null 2>&1
	     fi
	     set -e		# In case the mount worked reset it to -e.
	     break
	fi
	done < /mkfs.data
else
	/etc/mountall > /dev/null 2>&1
	if [ -f /usr/lib/dl ]
	then
		rm -f /usr/lib/dl
	fi
	if [ -f /usr/admin/menu/packagemgmt/lpmgmt ]
	then
		rm -f /usr/admin/menu/packagemgmt/lpmgmt
	fi
fi
echo 
echo
echo "Insert System Installation Tape in drive and press <RETURN>▶07◀ \c"
read a
echo "*** Installing Core Base ***"
/etc/check_tape /tmp/tape_install /dev/tape
if [ $? != "0" ]; then
	echo "Not Installation tape"
	exit 1
fi
# Read /tmp/tape_install
/bin/cpio -iBmduv < /dev/ntape 
# Read Core Base
/bin/cpio -imduvC 32768 < /dev/ntape 
set +e
sync
rm -f /unix.scsi

#FK, set date before upgrade
date `/etc/getclk` > /dev/null 2>&1

if [ "$upgrade" = "1" ]
then
	/bin/mv /etc/UGpartitions /etc/partitions
	/bin/mv /etc/UGinittab /etc/inittab
	/bin/mv /etc/UGpasswd /etc/passwd
	/bin/mv /etc/UGshadow /etc/shadow
	/bin/mv /etc/UGgroup /etc/group
	/bin/mv /etc/UGfstab /etc/fstab
	/bin/mv /etc/UGTIMEZONE /etc/TIMEZONE
	/bin/rm -f /etc/rc.d/setup
	[ -d /etc/conf/cf.d ] && /bin/mv /etc/conf/cf.d/UGinit.base /etc/conf/cf.d/init.base
	if [ -f /UG.profile ] 
	then
		 /bin/mv /UG.profile /.profile
	else
		/bin/rm -f /.profile
	fi
	sync;sync
	echo "Installing bundled packages from tape..\c"
	/tmp/tape_install CBdone
	if [ $? != 0 ]
	then
		echo "*** The installation has been aborted ***"
		echo "Correct the error and start the installation from the boot disk"
		echo "Use 'uadmin 2 0' to shutdown the system"
		exit 1
	fi

# Force new kernel enviroment on next boot
	touch /etc/.new_unix

	/etc/umountall
	sync;sync
	echo "The 386/ix system has been upgraded."
	echo "\n\tWhen you are prompted to reboot your system,\n\
	remove the tape from the drive, and strike any key.\n\
	** Wait for the prompt.**\n"
	uadmin 2 0 
	sync
	echo "Something's wrong, please shut off the machine and manually reboot"
	exit 5
else
	/bin/mv /etc/inittab3 /etc/inittab
	/bin/cat /etc/fstab.save >>/etc/fstab
fi
#FK, move to before update
#date `/etc/getclk` > /dev/null 2>&1

echo "\n386/ix System files have been copied to the hard disk."
echo "Additional system files will now be set up.\nPlease wait ...\c"

/etc/links /etc/boot /etc/.wboot
/etc/links /etc/.fboot /etc/fboot
/etc/links /etc/emulator /etc/emulator.dflt
/etc/links /usr/lib/lib.b /usr/lib/lib.bc

cd /bin
/etc/links df /etc/devnm
/etc/links ed red
/etc/links false iAPX286 i286 mc68k pdp11 u370 u3b u3b15 u3b2 u3b5 vax
/etc/links true i386
/etc/links ls lc
/etc/links mv ln cp 
/etc/links mail rmail
/etc/links sh rsh
/etc/links stty STTY
/etc/links touch settime
/etc/links xrestore xrestor
/etc/links /etc/init telinit
/etc/links /etc/fsck /etc/fsck1K
/etc/links /etc/fsdb /etc/fsdb1K
/etc/links /etc/dcopy1K /etc/dcopy
/etc/links /etc/mkfs /etc/mkfs1K
/etc/links /etc/disksetup /etc/adddisk
/etc/links /etc/rc0.d/K75cron /etc/rc2.d/S75cron
sync

cd /usr/bin
# 'oawk' is the default, nawk is not the system default
mv awk nawk
/etc/links oawk awk

/etc/links dossette doserase
/etc/links dossette dosdir dosformat dosget dosmkdir dosput dosrename dosrmdir\
	   doscopy dostype
#/etc/links checkfsys makefsys mountfsys powerdown setup sysadm umountfsys
/etc/links dtou lef utod
/etc/links edit ex vedit vi view

ln /usr/lbin/removepkg.r /usr/bin/removepkg
ln /usr/lbin/installpkg.r /usr/bin/installpkg

sync

date > /dev/null 2>&1
TERM=AT386-M; export TERM

# Get the time and date
echo "\n\nSystem time is: `date`\n"
sync

# Create /etc/shadow
/usr/bin/pwconv > /dev/null 2>&1

cd /usr/lib/terminfo
/etc/links A/AT386 a/at386 3/386at 3/386AT
/etc/links A/AT386-M a/at386-m 3/386at-m 3/386AT-M
/etc/links A/AT386-UL a/at386-ul 3/386at-ul 3/386AT-UL

# Core terminfo files
if [ ! -d ../.COREterm ]
then
	mkdir ../.COREterm
fi
chmod 775 ../.COREterm; chgrp bin ../.COREterm; chown bin ../.COREterm
find * -type f -print | cpio -pldmu ../.COREterm >/dev/null 2>&1
sync

for directory in /dev/rdsk /dev/dsk
do
	cd ${directory}
        if [ "${directory}" = "/dev/rdsk" ]
        then
            mknod f0q9d c 1 100
            mknod f0q9dt c 1 96
            mknod f1q9d c 1 101
            mknod f1q9dt c 1 97
            mknod f0q18d c 1 84
            mknod f0q18dt c 1 80
            mknod f1q18d  c 1 85
            mknod f1q18dt c 1 81
        else
            mknod f0q9d b 1 100
            mknod f0q9dt b 1 96
            mknod f1q9d b 1 101
            mknod f1q9dt b 1 97
            mknod f0q18d b 1 84
            mknod f0q18dt b 1 80
            mknod f1q18d  b 1 85
            mknod f1q18dt b 1 81
        fi
	/etc/links	f0d8d	f05d8
	/etc/links	f0d8dt	f05d8t
	/etc/links	f0d9d	f05d9
	/etc/links	f0d9dt	f05d9t
	/etc/links	f0q15d	f05h
	/etc/links	f0q15dt	f05ht
	/etc/links	f1d8d	f15d8
	/etc/links	f1d8dt	f15d8t
	/etc/links	f1d9d	f15d9
	/etc/links	f1d9dt	f15d9t
	/etc/links	f1q15d	f15h
	/etc/links	f1q15dt	f15ht
done
cd /dev
[ -d SA ] || (rm -f SA; mkdir SA)
[ -d rSA ] || (rm -f rSA; mkdir rSA)
chmod 755 SA rSA
chgrp sys SA rSA
/etc/links dsk/f0d9dt SA/disk0_360k
/etc/links rdsk/f0d9dt rSA/disk0_360k
/etc/links dsk/f0q15dt SA/disk0_1.2M
/etc/links rdsk/f0q15dt rSA/disk0_1.2M
/etc/links dsk/f1d9dt SA/disk1_360k
/etc/links rdsk/f1d9dt rSA/disk1_360k
/etc/links dsk/f1q15dt SA/disk1_1.2M
/etc/links rdsk/f1q15dt rSA/disk1_1.2M
/etc/links dsk/f0q9dt SA/disk0_720k
/etc/links dsk/f1q9dt SA/disk1_720k
/etc/links rdsk/f0q9dt rSA/disk0_720k
/etc/links rdsk/f1q9dt rSA/disk1_720k
/etc/links dsk/f0q18dt SA/disk0_1.44M
/etc/links dsk/f1q18dt SA/disk1_1.44M
/etc/links rdsk/f0q18dt rSA/disk0_1.44M
/etc/links rdsk/f1q18dt rSA/disk1_1.44M
sync

cd /
if [ ! -d /usr/preserve ]
then
mkdir /usr/preserve
fi
chown bin /usr/preserve; chgrp bin /usr/preserve; chmod 777 /usr/preserve

if [ ! -f /etc/log/filesave.log ]
then
mkdir /etc/log; > /etc/log/filesave.log
fi
chown root /etc/log; chown bin /etc/log/filesave.log
chgrp sys /etc/log; chgrp bin /etc/log/filesave.log
chmod 775 /etc/log; chmod 644 /etc/log/filesave.log

cd /
if [ ! -d /usr/options ]
then
mkdir  /usr/lib/installed /usr/lib/installed/Files /usr/lib/installed/Remove /usr/options
fi
chmod 755 /usr/lib/installed /usr/lib/installed/Files /usr/lib/installed/Remove
chgrp sys /usr/options; chmod 775 /usr/options

chmod 777  /usr
#su install -c "mkdir /u/install /usr/install > /dev/null 2>&1"
chmod 755  /usr 
sync

if [ ! -d /etc/rc.d ]
then
mkdir /etc/rc.d
fi
chmod 775 /etc/rc.d; chown root /etc/rc.d; chgrp sys /etc/rc.d

cd /
sync

# Turn process accounting off
/usr/lib/acct/turnacct off
sync

# Establish LP printer tables
(cd /usr/spool/lp/temp
for i in `ls *table`; do
	/usr/lib/lpfilter -f$i -F$i
	rm -f $i
done
cp /usr/spool/lp/admins/lp/filter.table /usr/spool/lp/admins/lp/filter.table.i
for i in filter.table filter.table.i ; do
	chmod 664 /usr/spool/lp/admins/lp/$i
	chgrp bin /usr/spool/lp/admins/lp/$i
	chown lp /usr/spool/lp/admins/lp/$i
done) 2>/dev/null

chown root /; chgrp root /; chmod 755 /
chown bin /lib; chgrp bin /lib; chmod 775 /lib

sync

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

chown root /usr; chgrp sys /usr; chmod 775 /usr
chown root /; chgrp sys /; chmod 775 /
chmod 644 /etc/fstab

sync
sync
echo "Installing bundled packages from tape..\c"
/tmp/tape_install CBdone
if [ $? != 0 ]
then
	echo "*** The installation has been aborted ***"
	echo "Correct the error and start the installation from the boot disk"
	echo "Use 'uadmin 2 0' to shutdown the system"
	exit 1
fi

if [ "$upgrade" = "1" ]
then
	/etc/umountall > /dev/null 2>&1
	echo "The 386/ix system has been upgraded."
else
	umount /dev/dsk/0s4 >/dev/null 2>&1
	umount /dev/dsk/0s3 >/dev/null 2>&1
	echo "\n\nThe 386/ix Operating System has been installed on the hard disk.\n"
fi
sync
rm -fr /.profile /mkfs.data /etc/links /tmp/*
rm -f /etc/.lastbackup /etc/.lastpartial

# Force new kernel enviroment on next boot
touch /etc/.new_unix

sync
sync
echo "The system will now be shut down.\n"
sync
echo "\n\tWhen you are prompted to reboot your system,\n\
remove the tape from the drive, and strike any key.\n\
** Wait for the prompt.**\n"
uadmin 2 0 
sync
echo "Something's wrong, please shut off the machine and manually reboot"