home *** CD-ROM | disk | FTP | other *** search
/ norge.freeshell.org (192.94.73.8) / 192.94.73.8.tar / 192.94.73.8 / pub / computers / 3b2 / images / INSTALL < prev    next >
Text File  |  2009-05-20  |  11KB  |  274 lines

  1. #    INSTALL 2.0                        1/16/1995
  2. #    Installation/menu system to install certain 3B2 software from
  3. #     a CTC ctccpio archive on tape.
  4. #
  5. #    History:  1.0    1/15/94  Cleaned up some errors and added 
  6. #             additional packages to fill the tape up
  7. #################################################################################
  8. #    Warning: Use at your own risk.  All attempts have been made to be sure
  9. #    the major BUGS are out of these scripts but no guarantees. THERE IS NO
  10. #    CHECK DONE TO SEE IF THE ARCHIVED FILES WILL FIT ON THE HARD DISK.  This
  11. #    needs to be addressed in release 2.1 if I ever get around to it.
  12. #
  13. #    This files is executed as follows:
  14. #    From root:    # sysadm installpkg <cr>
  15. #
  16. #            Choose install from diskette drive
  17. #            You will then be prompted to put the tape in 
  18. #            and just follow the directions on the Screen
  19. #
  20. #################################################################################
  21. #    The files on the tape can be installed manually as follows:
  22. #
  23. #    From root:    # sysadm restore
  24. #            Choose to restore from ctape1
  25. #            Choose which pkg to restore
  26. #            Once it is restored
  27. #            # cd /usr/tmp
  28. #            # gzip.bin -d *.gz
  29. #            # cpio -idv < (name of file restored)
  30. #            # sh /install/install/INSTALL
  31. #            # cd /install
  32. #            # pwd  (Be absolutely sure you are in /isntall)
  33. #            #rm -fr *
  34. #            ALL DONE
  35. #    This is a basic overview of what this script does.  Use the script
  36. #    if possible.  Oracle is a little different.
  37. #
  38. #    PLEASE report any bugs to me so I can work on fixing them.
  39. #############################################################################
  40. #            
  41. #            
  42. trap 'exit 0' 1 2 15
  43. INSPATH=/install/new
  44. insdirpath=/install/new/usr/tmp
  45. LAST=1
  46. PKGBIN=/install/install/bin
  47.  
  48. tput clear
  49.  
  50. 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"
  51. read junk;
  52.  
  53. if [ ! -f /tmp/INSTALL ]
  54. then
  55.     cp /install/install/INSTALL /tmp/INSTALL
  56. fi
  57. if [ ! -f /tmp/MKINSTALL ]
  58. then
  59. cp /install/install/MKINSTALL /tmp/MKINSTALL
  60. fi
  61.  
  62.  
  63. if [ ! -f /tmp/INSTALL2 ]
  64. then
  65. cp /install/install/INSTALL2 /tmp/INSTALL2
  66. fi
  67.  
  68. if [ ! -f /tmp/ctccpio ]
  69. then
  70. cp /install/install/bin/ctccpio /tmp/ctccpio
  71. fi
  72.  
  73.  
  74. if [ ! -f /tmp/gzip.bin ]
  75. then
  76. cp $PKGBIN/gzip.bin /tmp/gzip.bin
  77. fi
  78.  
  79. 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."
  80. sleep 8;
  81. while :
  82. do
  83. tput clear
  84. echo "******************************************************************************"
  85. echo "\t\tATT 3B2 Software Load01 CTC Tape--INSTALL  Page 1"
  86. echo "\tEnter the Number of the Package you want to install.\n"
  87. echo " 1.  Job Accounting            2.  Calculation/Shell/User Environment "
  88. echo " 3.  C Compiler 4.2            4.  Cobol and Basic Language"
  89. echo " 5.  Crack (passwd utility)    6.  Cartridge Tape Utility v2.0" 
  90. echo " 7.  Directory/File Mgmt. 3.1  8.  Editing 3.2"
  91. echo " 9.  Eports Utility/Driver1.3 10.  Extended Software Generation"
  92. echo "11.  FSD Utility 1.23         12.  Interprocess Comm.  3.2 & 3.2.2"
  93. echo "13.  Line Printer Util. 3.2   14.  Multiprocessor Enhancements 3.1.1/3.2.2"
  94. echo "15.  Microsoft Word 1.5       16.  Microsoft Word Conversion"
  95. echo "17.  Network Interface NI     18.  Network Support Utilities"
  96. echo "19.  Oracle RDBMS             20.  PCDisk 1.09"
  97. echo "21.  PC Interface 2.6.4       22.  System Performance Analysis"
  98. echo "23.  Prelude Database 2.1     24.  Remote File Sharing"
  99. echo "25.  Remote Console           26.  SCSI Utilities (Host Adapt/Tape/Mirror)"
  100. echo "27.  SPECIAL SELECTIONS       28.  Software Generation 4.2 "
  101. echo "29.  Spell Utilities          30.  Sysadm Administration 3.2"
  102. echo "31.  System Header Files      32.  Terminal Information 3.2"
  103. echo "33.  Basic Networking 3.2     34.  FACE 1.1"
  104. echo "35.  TCPIP-Win 3B             36.  Windowing 3.1"
  105. echo " Q   QUIT Exit to UNIX        MORE Go to Page 2--More selections "
  106. echo "******************************************************************************"
  107. echo "\tEnter your selection now (1-36, Q, or MORE): \c"
  108. rm /usr/tmp/* 2> /dev/null
  109. read response
  110. tput clear;
  111. 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"`
  112.  
  113. case $response in
  114. #menu options
  115.  
  116. 1)    echo "$pwait";  PKGINSTALL=acc*; break;;
  117. 2)    echo "$pwait";  PKGINSTALL=cal*; break;;
  118. 3)    echo "$pwait";  PKGINSTALL=cc*; break;;
  119. 4)    echo "$pwait";  PKGINSTALL=cob*; break;;
  120. 5)    echo "$pwait";  PKGINSTALL=cra*; break;;
  121. 6)    echo "$pwait";  PKGINSTALL=cta*; break;;
  122. 7)    echo "$pwait";  PKGINSTALL=dfm*; break;;
  123. 8)    echo "$pwait";  PKGINSTALL=ed*; break;;
  124. 9)    echo "$pwait";  PKGINSTALL=epo*; break;;
  125. 10)    echo "$pwait";  PKGINSTALL=esg*; break;;
  126. 11)    echo "$pwait";  PKGINSTALL=fsd*; break;;
  127. 12)    echo "$pwait";  
  128.         tput clear; echo "\n\nWhich IPC PKG do you wish to install (3.2 or 3.2.2): \c"; read input; case $input in
  129.             3.2)    PKGINSTALL=ipc1-.2*; break;;
  130.             3.2.2)    PKGINSTALL=ipc1.cpio*; break;;
  131.             *)    echo "You must either enter 3.2 or 3.2.2"; 
  132.                 sleep 10; exit;;
  133.             esac;;
  134.  
  135. 13)    echo "$pwait";  PKGINSTALL=lp*; break;;
  136.  
  137. 14)    echo "$pwait"; tput clear;
  138.         echo "\n\nWhich Multiprocessor PKG do you wish to install (3.1.1 or 3.2.2): \c"; read input; case $input in
  139.             3.1.1) PKGINSTALL=mpb1*; break;;
  140.             3.2.2) PKGINSTALL=mpbe*; break;;
  141.             *)    echo "You must either enter 3.1.1 or 3.2.2";
  142.                 sleep 10; exit;;
  143.             esac;;    
  144.  
  145. 15)    echo "$pwait";  PKGINSTALL=mw*; break;;
  146. 16)    echo "$pwait";  PKGINSTALL=mwc*; break;;
  147. 17)    echo "$pwait";  PKGINSTALL=ni*; break;;
  148. 18)    echo "$pwait";  PKGINSTALL=nsu*; break;;
  149.  
  150. 19)    echo "$pwait"; sleep 5; tput clear; cat /install/install/ORACLE.wait; \
  151.      PKGINSTALL=ora*; break;;
  152.  
  153. 20)    echo "$pwait";  PKGINSTALL=pcd*; break;;
  154. 21)    echo "$pwait";  PKGINSTALL=pci*; break;;
  155. 22)    echo "$pwait";  PKGINSTALL=per*; break;;
  156. 23)    echo "$pwait";  PKGINSTALL=pre*; break;;
  157. 24)    echo "$pwait";  PKGINSTALL=rfs*; break;;
  158. 25)    echo "$pwait";  PKGINSTALL=rmp*; break;;
  159. 26)    echo "$pwait"; tput clear; echo "\n\n\tA. SCSI HOST ADAPTER\n\tB. SCSI TAPE DRIVE \n\tC. SCSI MIRROR UTILITY\n\nEnter the Letter of the SCSI Pkg. you want to install: \c"
  160.         read input;
  161.         case $input in
  162.         
  163.     [A,a])     PKGINSTALL=scsi*; break;;
  164.     [B,b])     PKGINSTALL=sd011*; break;;
  165.     [C,c])     PKGINSTALL=st?11*; break;;
  166.     *)    echo "Please enter only A, B, or C"; sleep 5; exit;;
  167.     esac;;
  168.  
  169. 27)    tput clear; echo "\n\tSwitching Menu's ...Please wait"; \
  170.      exec /tmp/MKINSTALL; exit;;
  171.  
  172. 28)    echo "$pwait";  PKGINSTALL=sgs*; break;;
  173. 29)    echo "$pwait";  PKGINSTALL=spe*; break;;
  174. 30)    echo "$pwait";  PKGINSTALL=sysa*; break;;
  175. 31)    echo "$pwait";  PKGINSTALL=sys1*; break;;
  176. 32)    echo "$pwait";  PKGINSTALL=ter*; break;;
  177. 33)    echo "$pwait";  PKGINSTALL=uuc*; break;;
  178. 34)    echo "$pwait";  PKGINSTALL=vm*; break;;
  179. 35)    echo "$pwait";  PKGINSTALL=win?.cpio*; break;;
  180. 36)    echo "$pwait";  PKGINSTALL=wind*; break;;
  181.  
  182.     [q,Q]*) echo "\n\tDO NO REMOVE TAPE or DISK until they are NOT running."; exit;;
  183.  
  184.     More|MORE|more)    
  185. tput clear
  186. echo "******************************************************************************"
  187. echo "\t\tATT 3B2 Software Load01 CTC Tape--INSTALL  Page 2"
  188. echo "\tEnter the Number of the Package you want to install.\n"
  189. echo "37.  Form & Menu Lang 1.1     38.  CPIO patch 3.2.3"
  190. echo "39.  Security Admin. 3.0      40.  Source Code Control System Util. "
  191. echo "41.  Help Utility (UNIX)      42.  Cart. Tape Controller Util. 3.0"
  192. echo "43.  Graphic Utilities        44.  Performance Meas. Util."
  193. echo "45.  Enhanced Ports 1.3 EPORT 46.  Expanded IO (PORTS for HPP)"
  194. echo "47.  Int. Serial Cont. Diag.  48.  Assist/Astgen (Help Utility)"
  195. echo "49.  DMD Complete Package     50.  Documentors Work Bench"
  196. echo "51.  Advanced Editing Utility 52.  EXB8200 8mm Tape Controller"
  197. echo "53.  Fiber Expansion          54.  Fortran Programming Language"
  198. echo "55.  Int. Serial Cont. Pkg.   56.  Jetcom (Communications)"
  199. echo "57.  Multi-Processor Support  58.  Network Access Utility-Starlan"
  200. echo "59.  Starlan Drivers          60.  Twin Spreadsheet (Lotus Clone)"
  201. echo "61.  Text Support             62.  3B2 Verification (300 & 400) "
  202. echo "63.  Writers Work Bench       64.  X25 Network Driver"
  203. echo "65.  XDC Driver               66.  XDC Toolbox" 
  204. echo "\n\n Q   QUIT Exit to UNIX       MORE  Go to Page 1--Previous Page"
  205. echo "                 SHELL  Execute /bin/sh temporarily"
  206. echo "******************************************************************************"
  207. echo "\tEnter your selection now (37-46, Q, SHELL or MORE): \c"
  208. rm /usr/tmp/* 2> /dev/null
  209. read resp
  210. tput clear;
  211.  
  212. case $resp in
  213.     
  214.     37)    echo "$pwait";  PKGINSTALL=fmli*; break;;
  215.     38)    echo "$pwait";  PKGINSTALL=cpio1*; break;;
  216.     39)    echo "$pwait";  PKGINSTALL=crypt2*; break;;
  217.     40)    echo "$pwait";  PKGINSTALL=sccs1*; break;;
  218.     41)    echo "$pwait";  PKGINSTALL=help1.2*; break;;
  219.     42)    echo "$pwait";  PKGINSTALL=ctc1*; break;;
  220.     43)    echo "$pwait";  PKGINSTALL=graph*; break;;
  221.     44)    echo "$pwait";  PKGINSTALL=perf1*; break;;
  222.     45)    echo "$pwait";  PKGINSTALL=eports.2*; break;;
  223.     46)    echo "$pwait";  PKGINSTALL=hpports*; break;;
  224.  
  225. #              NEW PACKAGES ADDED 1/16/95
  226.  
  227.     47)    echo "$pwait"; PKGINSTALL=isc.dia*; break;;
  228.     48)    echo "$pwait"; PKGINSTALL=assist*; break;;
  229.     49)    echo "$pwait"; PKGINSTALL=dmd*; break;;
  230.     50)    echo "$pwait"; PKGINSTALL=dwb*; break;;
  231.     51)    echo "$pwait"; PKGINSTALL=edu*; break;;
  232.     52)    echo "$pwait"; PKGINSTALL=exb*; break;;
  233.     53)    echo "$pwait"; PKGINSTALL=fib*; break;;
  234.     54)    echo "$pwait"; PKGINSTALL=fortr*; break;;
  235.     55)    echo "$pwait"; PKGINSTALL=isc?.*; break;;
  236.     56)    echo "$pwait"; PKGINSTALL=jetcom*; break;;
  237.     57)    echo "$pwait"; PKGINSTALL=mpb*; break;;
  238.     58)    echo "$pwait"; PKGINSTALL=nau*; break;;
  239.     59)    echo "$pwait"; PKGINSTALL=starla*; break;;
  240.     60)    echo "$pwait"; PKGINSTALL=twin*; break;;
  241.     61)    echo "$pwait"; PKGINSTALL=txtsup*; break;;
  242.     62)    echo "$pwait"; PKGINSTALL=verif*; break;;
  243.     63)    echo "$pwait"; PKGINSTALL=wwb*; break;;
  244.     64)    echo "$pwait"; PKGINSTALL=x25ni*; break;;
  245.     65)    echo "$pwait"; PKGINSTALL=xdc*; break;;
  246.     66)    echo "$pwait"; PKGINSTALL=xdtools*; break;;
  247.  
  248. #         END NEW PACKAGES 1/16/95
  249.  
  250.     more|More|MORE)    ;;
  251.     SHELL|Shell|shell)    echo "Type exit to return to menu"; /bin/sh;;
  252.     [q,Q]*) echo "\n\tDO NO REMOVE TAPE or DISK until they are NOT running."; exit;;
  253.  
  254.     *)    echo "\n\n\n\tINCORRECT RESPONSE PLEASE TRY AGAIN"; sleep 2 ;;
  255.                     
  256. esac;;
  257.  
  258.  
  259.     SHELL|Shell|shell)    echo "Type exit to return to menu"; /bin/sh;;
  260.     *)    echo "\n\n\n\tINCORRECT RESPONSE PLEASE TRY AGAIN"; sleep 2;;
  261. esac
  262. done
  263.     cd /usr/tmp
  264.     echo "PKGINSTALL is $PKGINSTALL"
  265.     export PKGINSTALL
  266.     echo "\nThe following file(s) are being loaded from the tape:\n...(Please wait...about 10 minutes)"
  267.     /tmp/ctccpio -iduvm -T/dev/rSA/ctape1 /usr/tmp/${PKGINSTALL}
  268.  
  269. echo "\nUNZIPPING the archived file, this will several minutes...Please be patient."
  270. cd /usr/tmp
  271. /tmp/gzip.bin -d /usr/tmp/*.gz
  272. exec /tmp/INSTALL2
  273.  
  274.