📄 install.1
字号:
#!/bin/sh# install.1: installation for standalone environment.## @(#)install.1 4.5 (ULTRIX) 1/21/91## Modification History# ~~~~~~~~~~~~~~~~~~~~## 013 - Jan 1991 - Jon Wallace# Changed text that references the ULTRIX installation guide to# reflect the proper title of that document.## Added RZ23L to case statement that restricts installation on# disks that can't hold the entire operating system by themselves.## 012 - Aug 31, 1990 - Jon Wallace# Put in fix to remove embedded spaces when performing a read## 011 - Mar 14, 1990 - Jon Wallace# Re-wrote installation message when installing to RZ23# and RD53 disks.## 010 - Sep 13, 1989 - Tim Burke# Added dynamic disc support. If the disk is not in the list of# supported units then call the geometry program to determine the# number of sectors and tracks.## 009 - May 31, 1989 - Jon Wallace# Added variable ROUTINE to allow finder to page through# disk selections of more than 16 disks.## 008 Dec 01, 1988 - Jon Wallace# Fixed RZ23 system disk ADVFLAG bug## 007 - Nov 20, 1988 - Jon Wallace# Coded RZ23 system disk to be ADVANCED installation only.## 006 - Aug 16, 1988 - Jon Wallace# Added PVAX CDROM support## 005 - Jun 28, 1988 - Jon Wallace# Added RZ55 disk and restructured BTD case## 004 - Jun 07, 1988 - Jon Wallace# Added PVAX support (TZ30)## 003 - Jan 26, 1988 - Tung-Ning Cherng# Allowed using the existing partition of system disk.## 002 - April, 1987 - Tungning Cherng# Added the log file for V2.2.# # 001 - June, 1986 - Lea Gottfredsen & Tungning Cherng# Added in network remote support.## 000 - April 11, 1986, by Tungning Cherng# Prompt edits - Sept. 19, 1986, by Al Wojtas################################################################################################################################PATH=.:/etc:/binHOME=/MACHTYPE=`/bin/machine`export PATH HOME MACHTYPELL=""MSG2="${LL}*** SOFTWARE DISTRIBUTION DEVICE SELECTION ***${LL} The 'Guide to Installing ULTRIX' explains the following table of software distribution devices and which installation media you should load on it: "MSG3="${LL}*** SYSTEM DISK SELECTION ***${LL}The 'Guide to Installing ULTRIX' explains the following table of system disk drives. Select one of the devices below to contain theroot file system: "MSG4="${LL}The installation procedure is now restoring the root file system topartition 'a' of the system disk,"MSG5="The installation procedure now checks the root file system on partition 'a'of the system disk,"ERMSG1="This error causes the installation procedure to stop. One possiblecause for the error is a corrupt system disk. You may want to replaceor use another system disk, and begin the installation again. If thiserror message appears a second time, contact a DIGITAL representative."ERMSG2="The installation software could not access your distribution device.Make sure the distribution device is on line and ready before you select the device from the table."ERMSG3="The installation software could not access your system disk. Make surethe system disk drive is on line and write-enabled (if applicable toyour disk drive) before you select the device from the table."ERMSG4="Contact a DIGITAL field service representative."ERMSG5="The existing disk partitions do not meet the requirements for installation."MINIROOTSIZE=32768MINISWAPSIZE=12288case $MACHTYPE invax ) DISK_MEDIA_DIR="VAX/BASE" ;;mips) DISK_MEDIA_DIR="RISC/BASE" ;;esacwhile : truedo echo -n "*** STANDALONE ULTRIX ENVIRONMENT *** If you select the BASIC Installation option from the list that follows,the installation software creates file systems on default partitions onyour system disk and loads the mandatory ULTRIX software subsets.If you require additional installation choices, select the ADVANCEDInstallation option.Select one of the following options: ${LL} 1) BASIC Installation 2) ADVANCED Installation 3) System management ${LL}Enter your choice: " read resp resp=`echo $resp` case $resp in 1 ) ADVFLAG=0 DEF_PT=1 break ;; 2 ) ADVFLAG=1 DEF_PT=0 break ;; 3 ) exit 1 ;; esacdonetrap 'while :do echo -n "Do you want to quit the installation? (y/n) []: " read ans ans=`echo $ans` case $ans in [yY]* ) echo "Restart your installation." exit 1 ;; [nN]* ) break ;; esacdone ' 1 2 3 BTD=`btd`BTDTYPE=`expr "$BTD" : '\([a-zA-Z][a-zA-Z]*\)'`BTDUNIT=`expr "$BTD" : '[a-zA-Z][a-zA-Z]*\([0-9][0-9]*\)'`case $BTD inNETWORK ) eval `gethost` media_D=REMOTE ;;tms* ) (cd /dev; MAKEDEV $BTD > /dev/null) media_D=TK50; media_d=$BTDTYPE; media_u=$BTDUNIT ;;rmt* ) (cd /dev; MAKEDEV $BTD > /dev/null) media_D=TK50; media_d=$BTDTYPE; media_u=$BTDUNIT ;;tz* ) (cd /dev; MAKEDEV $BTD > /dev/null) media_D=TZ30; media_d=$BTDTYPE; media_u=$BTDUNIT ;;rz* ) (cd /dev; MAKEDEV $BTD > /dev/null) media_D=CDROM; media_d=$BTDTYPE; media_u=$BTDUNIT; media_p=c ;;st* ) (cd /dev; MAKEDEV $BTD > /dev/null) media_D=TK50; media_d=$BTDTYPE; media_u=$BTDUNIT ;;* ) while : true do ROUTINE="SOFTWARE DISTRIBUTION DEVICE" export ROUTINE echo "$MSG2" if [ "$PASS" = "REPEAT" ] then MEDIA=`finder -f` else MEDIA=`finder -i` fi case $? in 0 ) ;; * ) echo "${LL}No valid device is found. $ERMSG4" exit 1 ;; esac set xx $MEDIA media_D=$2; media_d=$3; media_u=$4 LABEL="SUPPORTED SOFTWARE" case $media_D in TK* ) echo "REMOVE THE TAPE LABELED 'STANDALONE ULTRIX TK50 #1'." ;; RX* ) LABEL="ROOT 1" ;; RA60 ) LABEL="SUPPORTED & UNSUPPORTED SOFTWARE" ;; esac while : do echo -n "You selected ${media_D}, device number ${media_u}. After you load the medialabeled $LABEL, make sure the device is on lineand write protected, and then confirm your choice.Use $media_D, ${media_d}${media_u} as Software Distribution Device? (y/n) []: " read ans ans=`echo $ans` case $ans in Y | y ) PASS= break ;; N | n ) PASS=REPEAT continue 2 ;; * ) echo "You must answer 'y' or 'n' to the following." continue ;; esac done media_p= case $media_D in RX50 | RA60 ) media_p=c ;; esac cd /dev MAKEDEV $media_d$media_u$media_p > /dev/null case $? in 0 ) ;; * ) echo "The MAKEDEV command could not make the special files on device $media_d$media_u. $ERMSG1 " exit 1 ;; esac cd / case $media_D in RA60 | RX50 ) dd if=/dev/r$media_d$media_u$media_p count=1 >/dev/null 2>&1 case $? in 0 ) ;; * ) echo "$ERMSG2" continue ;; esac ;; *) mt -f /dev/rmt0h rew case $? in 0 ) ;; * ) echo "$ERMSG2" rm -f /dev/*mt* continue ;; esac ;; esac break done ;;esac case $MACHTYPE$BTD inmipstz* ) while : do mt rew 2>1 >/dev/null case $? in 1 ) continue ;; * ) break ;; esac done ;;esacwhile : truedo ROUTINE="SYSTEM DISK" export ROUTINE echo "$MSG3" ROOTF=`finder -r` case $? in 0 ) ;; * ) echo "${LL}No valid device is found. $ERMSG4" exit 1 ;; esac set xx $ROOTF root_D=$2; root_d=$3; root_u=$4 case $root_d$root_u in $media_d$media_u ) echo "You attempted to allocate the root file system on $root_d$root_u, which contains your distribution medium. Select another disk device from thetable." continue ;; esac while : do echo -n "You selected ${root_D}, device number ${root_u}. Make sure this disk drive is on line and write-enabled (if applicable to your disk drive), thenconfirm your choice.Use ${root_D}, $root_d$root_u, for your system disk? (y/n) []: " read ans ans=`echo $ans` case $ans in Y | y ) break ;; N | n ) continue 2 ;; * ) echo "You must answer 'y' or 'n' to the following." continue ;; esac done case $root_D in RA60 ) ns=42;nt=4;; RA70 ) ns=33; nt=11 ;; RA80 | RM80 | R80 ) ns=31;nt=14;; RA81 ) ns=51;nt=14;; RA82 ) ns=57;nt=15;; RA90 ) ns=70; nt=13;; RD32 ) ns=17; nt=6;; RD33 ) ns=17; nt=7;; RD53 ) ns=18;nt=8;; RD54 ) ns=17;nt=15;; RM03 ) ns=32;nt=5;; RM05 ) ns=32;nt=19;; RP05 | RP06 )
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -