# INSTALL 2.0 1/16/1995
# Installation/menu system to install certain 3B2 software from
# a CTC ctccpio archive on tape.
#
# History: 1.0 1/15/94 Cleaned up some errors and added
# additional packages to fill the tape up
#################################################################################
# Warning: Use at your own risk. All attempts have been made to be sure
# the major BUGS are out of these scripts but no guarantees. THERE IS NO
# CHECK DONE TO SEE IF THE ARCHIVED FILES WILL FIT ON THE HARD DISK. This
# needs to be addressed in release 2.1 if I ever get around to it.
#
# This files is executed as follows:
# From root: # sysadm installpkg <cr>
#
# Choose install from diskette drive
# You will then be prompted to put the tape in
# and just follow the directions on the Screen
#
#################################################################################
# The files on the tape can be installed manually as follows:
#
# From root: # sysadm restore
# Choose to restore from ctape1
# Choose which pkg to restore
# Once it is restored
# # cd /usr/tmp
# # gzip.bin -d *.gz
# # cpio -idv < (name of file restored)
# # sh /install/install/INSTALL
# # cd /install
# # pwd (Be absolutely sure you are in /isntall)
# #rm -fr *
# ALL DONE
# This is a basic overview of what this script does. Use the script
# if possible. Oracle is a little different.
#
# PLEASE report any bugs to me so I can work on fixing them.
#############################################################################
#
#
trap 'exit 0' 1 2 15
INSPATH=/install/new
insdirpath=/install/new/usr/tmp
LAST=1
PKGBIN=/install/install/bin
tput clear
echo "\n\n\n\tINSERT the CTC Tape in the drive and wait\n\tfor the retension pass to complete.\n\n\t (Press enter when retension has completed) \c"
read junk;
if [ ! -f /tmp/INSTALL ]
then
cp /install/install/INSTALL /tmp/INSTALL
fi
if [ ! -f /tmp/MKINSTALL ]
then
cp /install/install/MKINSTALL /tmp/MKINSTALL
fi
if [ ! -f /tmp/INSTALL2 ]
then
cp /install/install/INSTALL2 /tmp/INSTALL2
fi
if [ ! -f /tmp/ctccpio ]
then
cp /install/install/bin/ctccpio /tmp/ctccpio
fi
if [ ! -f /tmp/gzip.bin ]
then
cp $PKGBIN/gzip.bin /tmp/gzip.bin
fi
echo "\n\tWARNING...DO NOT REMOVE THE TAPE OR DISK UNTIL THE INSTALL\n\tPROGRAM HAS TERMINATED AND THE TAPE AND DISK ARE NOT RUNNING."
sleep 8;
while :
do
tput clear
echo "******************************************************************************"
echo "\t\tATT 3B2 Software Load01 CTC Tape--INSTALL Page 1"
echo "\tEnter the Number of the Package you want to install.\n"
echo " 1. Job Accounting 2. Calculation/Shell/User Environment "
echo " 3. C Compiler 4.2 4. Cobol and Basic Language"
echo " 5. Crack (passwd utility) 6. Cartridge Tape Utility v2.0"
echo " 7. Directory/File Mgmt. 3.1 8. Editing 3.2"
echo " 9. Eports Utility/Driver1.3 10. Extended Software Generation"
echo "11. FSD Utility 1.23 12. Interprocess Comm. 3.2 & 3.2.2"
echo "13. Line Printer Util. 3.2 14. Multiprocessor Enhancements 3.1.1/3.2.2"
echo "15. Microsoft Word 1.5 16. Microsoft Word Conversion"
echo "17. Network Interface NI 18. Network Support Utilities"
echo "19. Oracle RDBMS 20. PCDisk 1.09"
echo "21. PC Interface 2.6.4 22. System Performance Analysis"
echo "23. Prelude Database 2.1 24. Remote File Sharing"
echo "25. Remote Console 26. SCSI Utilities (Host Adapt/Tape/Mirror)"
echo "27. SPECIAL SELECTIONS 28. Software Generation 4.2 "
echo "29. Spell Utilities 30. Sysadm Administration 3.2"
echo "31. System Header Files 32. Terminal Information 3.2"
echo "33. Basic Networking 3.2 34. FACE 1.1"
echo "35. TCPIP-Win 3B 36. Windowing 3.1"
echo " Q QUIT Exit to UNIX MORE Go to Page 2--More selections "
echo "******************************************************************************"
echo "\tEnter your selection now (1-36, Q, or MORE): \c"
rm /usr/tmp/* 2> /dev/null
read response
tput clear;
pwait=`echo "\n\tPlease wait while the Software archive is loaded from the Tape.\n\tDO NOT REMOVE THE TAPE OR DISK until ALL Installation is complete"`
case $response in
#menu options
1) echo "$pwait"; PKGINSTALL=acc*; break;;
2) echo "$pwait"; PKGINSTALL=cal*; break;;
3) echo "$pwait"; PKGINSTALL=cc*; break;;
4) echo "$pwait"; PKGINSTALL=cob*; break;;
5) echo "$pwait"; PKGINSTALL=cra*; break;;
6) echo "$pwait"; PKGINSTALL=cta*; break;;
7) echo "$pwait"; PKGINSTALL=dfm*; break;;
8) echo "$pwait"; PKGINSTALL=ed*; break;;
9) echo "$pwait"; PKGINSTALL=epo*; break;;
10) echo "$pwait"; PKGINSTALL=esg*; break;;
11) echo "$pwait"; PKGINSTALL=fsd*; break;;
12) echo "$pwait";
tput clear; echo "\n\nWhich IPC PKG do you wish to install (3.2 or 3.2.2): \c"; read input; case $input in
3.2) PKGINSTALL=ipc1-.2*; break;;
3.2.2) PKGINSTALL=ipc1.cpio*; break;;
*) echo "You must either enter 3.2 or 3.2.2";
sleep 10; exit;;
esac;;
13) echo "$pwait"; PKGINSTALL=lp*; break;;
14) echo "$pwait"; tput clear;
echo "\n\nWhich Multiprocessor PKG do you wish to install (3.1.1 or 3.2.2): \c"; read input; case $input in
3.1.1) PKGINSTALL=mpb1*; break;;
3.2.2) PKGINSTALL=mpbe*; break;;
*) echo "You must either enter 3.1.1 or 3.2.2";
sleep 10; exit;;
esac;;
more|More|MORE) ;;
SHELL|Shell|shell) echo "Type exit to return to menu"; /bin/sh;;
[q,Q]*) echo "\n\tDO NO REMOVE TAPE or DISK until they are NOT running."; exit;;
SHELL|Shell|shell) echo "Type exit to return to menu"; /bin/sh;;
*) echo "\n\n\n\tINCORRECT RESPONSE PLEASE TRY AGAIN"; sleep 2;;
esac
done
cd /usr/tmp
echo "PKGINSTALL is $PKGINSTALL"
export PKGINSTALL
echo "\nThe following file(s) are being loaded from the tape:\n...(Please wait...about 10 minutes)"
/tmp/ctccpio -iduvm -T/dev/rSA/ctape1 /usr/tmp/${PKGINSTALL}
echo "\nUNZIPPING the archived file, this will several minutes...Please be patient."
cd /usr/tmp
/tmp/gzip.bin -d /usr/tmp/*.gz
exec /tmp/INSTALL2