|
DataMuseum.dkPresents historical artifacts from the history of: Regnecentalen RC-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Regnecentalen RC-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 5337 (0x14d9) Types: TextFile Notes: UNIX file Names: »INSTALL«
└─⟦352fcb75b⟧ Bits:30004777 INTERACTIVE Motif Environment Window Manager └─⟦352fcb75b⟧ UNIX Filesystem └─⟦this⟧ »install/INSTALL« └─⟦fdc69b24d⟧ Bits:30004152 SW95705I 386/ix Multi User Update 1 └─⟦fdc69b24d⟧ UNIX Filesystem └─⟦this⟧ »install/INSTALL«
# # Copyrighted as an unpublished work. # (c) Copyright 1987 INTERACTIVE Systems Corporation # All rights reserved. # # RESTRICTED RIGHTS # # These programs are supplied under a license. They may be used, # disclosed, and/or copied only as permitted under such license # agreement. Any copy must contain the above copyright notice and # this restricted rights notice. Use, copying, and/or disclosure # of the programs is strictly prohibited unless otherwise provided # in the license agreement. # #ident "@(#)INSTALL.sh 1.4 - 88/05/29" # # find mount device # if test -b "$1" then mntdev=$1 elif test -b /dev/diskette then mntdev=/dev/diskette elif test -b /dev/install then mntdev=/dev/install else echo "**ERROR** Can't find mount device" exit fi mntname="${2:-/install}" # # Get the packages on this diskette # INSPATH=/install cwd=`pwd` cd $INSPATH set `ls -d ??` cd $cwd nbrpkgs=$# pkgs="$*" for pkg in $pkgs do NAMEFILE=/install/$pkg/install/$pkg.name PKGNAME=`cat $NAMEFILE` echo Install the ${PKGNAME:-$pkg} package? "(y): \c" read resp [ "$resp" = "n" -o "$resp" = "N" ] && continue INSPATH=/install/$pkg/new export PKGNAME LAST=`cat /install/$pkg/install/NBRDISKS` echo "Installing the ${PKGNAME}." [ -x /install/$pkg/install/copyright ] && /bin/sh /install/$pkg/install/copyright expect=1 while [ "$expect" -le "$LAST" ] do if [ "$expect" -gt 1 ] then cd / /etc/umount $mntdev 2>/dev/null echo "Remove floppy and insert floppy number $expect" echo "Type <return> when ready: \c" read answer /etc/mount $mntdev $mntname -r 2>/dev/null else if [ "$expect" -eq 1 -a -r /usr/options/$pkg.name ] then echo "**WARNING** The `cat /usr/options/$pkg.name` is already installed" answer="" while [ "$answer" != y -a "$answer" != n ] do echo "Type 'y' to overwrite the ${PKGNAME} or \c" echo "'n' quit: \c" read answer done case $answer in y) ;; n) cd / /etc/umount $mntdev 2>/dev/null exit 1;; esac fi fi # # Check to make sure that this floppy belongs to the package # while [ ! -s $NAMEFILE -o "${PKGNAME}" != "`cat $NAMEFILE`" ] do echo "**ERROR** Floppy does not belong to the ${PKGNAME}" cd / /etc/umount $mntdev 2>/dev/null echo "Remove floppy and insert correct floppy" echo "Type <return> when ready: \c" read answer /etc/mount $mntdev $mntname -r 2>/dev/null done # # Check to make sure this is the correct floppy of the set # answer="" while [ "`cat /install/$pkg/install/ORDER`" != "$expect" -a "$answer" != y ] do echo "**WARNING** Floppy out of sequence" echo "Expecting floppy diskette number $expect" while [ "$answer" != y -a "$answer" != n ] do echo "Type 'y' to continue or \c" echo "'n' to try another floppy: \c" read answer done case $answer in n) cd / /etc/umount $mntdev 2>/dev/null echo "Remove floppy and insert correct floppy" echo "Type <return> when ready: \c" read answer answer="" /etc/mount $mntdev $mntname -r 2>/dev/null ;; y) expect=`cat /install/$pkg/install/ORDER` ;; esac done # # Verify dependencies loaded # # # Verify that there is space for the package. # if [ "$expect" -eq 1 -a -x /install/$pkg/install/dependencies ] then if /bin/sh /install/$pkg/install/dependencies then : else exit 1 fi fi if /etc/mount | grep /usr >/dev/null 2>&1 then USRneeds=`expr "\`du -s ${INSPATH}/usr\`" : "\([0-9]*\).*"` USRspace=`expr "\`df /usr 2>/dev/null\`" : '.*: *\([0-9]*\)'` if [ "$USRspace" -lt "$USRneeds" ] then echo "**ERROR** ${PKGNAME} cannot be installed --" echo "Not enough space on the hard disk." echo "There are $USRspace blocks available" echo "on the /usr file system --" echo "$USRneeds blocks are needed." exit fi else USRneeds=0 fi ROOTneeds=`expr "\`du -s ${INSPATH}\`" : "\([0-9]*\).*"` ROOTneeds=`expr ${ROOTneeds} - ${USRneeds}` ROOTspace=`expr "\`df / 2>/dev/null\`" : '.*: *\([0-9]*\)'` if [ "${ROOTspace:-2000}" -lt "$ROOTneeds" ] then echo "**ERROR** ${PKGNAME} cannot be installed --" echo "Not enough space on the hard disk." echo "There are $ROOTspace blocks available" echo "on the / (root) file system --" echo "$ROOTneeds blocks are needed." exit fi # Do special work before files are copied in. if [ "$expect" -eq 1 -a -f /install/$pkg/install/preinstall ] then /bin/sh /install/$pkg/install/preinstall fi cd ${INSPATH} echo "The following files are being installed:" find . -print | cpio -pduvm / # Do special work after files are copied in. cd /install/$pkg/install if [ -f link ] then . ./link fi if [ -f setup ] then . ./setup fi echo "Floppy diskette number $expect is complete" expect=`expr $expect + 1` done # Do special work after files are copied in. cd /install/$pkg/install if [ -f postinstall ] then . ./postinstall fi if [ ! -d /usr/options ] then mkdir /usr/options chmod 755 /usr/options fi echo "$PKGNAME" >/usr/options/$pkg.name chmod 744 /usr/options/$pkg.name echo "Installation of the ${PKGNAME} is complete." cd $cwd done exit