|
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 - download
Length: 5620 (0x15f4) Types: TextFile Notes: UNIX file Names: »INSTALL«
└─⟦2cfcd94e5⟧ Bits:30004151 SW95705I 386/ix Multi-User Rel 1.2 boot └─⟦2cfcd94e5⟧ UNIX Filesystem └─ ⟦this⟧ »INSTALL«
#ident "@(#)INSTALL 1.12 - 88/05/25" # This script is the first stage of the installation procedure for # System V.3 on the Intel AT/386. It runs disksetup.at to prompt the # user for information about his disk and partitions thereon. The # disksetup program builds the following files: # /etc/partitions -- with the disk characteristics and partitions from the # user, # fdisk.data -- used as re-directed input to fdisk to set aside a DOS area # on the disk and install the first-stage bootstrap, # addparts -- contains the names of additional partitions the user may # want in addition to the required standard ones, # mkfs.data -- contains information about each filesystem which the user # wants made. # # Enough of the system is copied to the hard disk that we can boot there # and copy the remainder of the system. echo while :;do echo > /etc/kdinit echo '# Initialize keyboard and font' >> /etc/kdinit echo echo " Terminal nationality:" echo echo " 1: Danish" echo echo " 2: Swedish" echo echo " 3: German" echo echo " 4: English" echo echo " 5: US Ascii" echo echo "Type the number corresponding to the nationality of your terminal: \c" read a case $a in 1) echo "/etc/keyb dk" >> /etc/kdinit break ;; 2) echo "/etc/keyb sv" >> /etc/kdinit break ;; 3) echo "/etc/keyb gr" >> /etc/kdinit break ;; 4) echo "/etc/keyb uk" >> /etc/kdinit break ;; 5) echo "/etc/keyb us" >> /etc/kdinit break ;; *) echo "\007\n\n\n Unknown terminal type\n\n\n" continue ;; esac done echo "/bin/chcp 850" >> /etc/kdinit chmod +x /etc/kdinit /etc/kdinit echo set -e # exit if anything bad happens set +x echo "Do you wish to do a complete (destructive) installation (y/n)? \c" read a if [ "$a" = "n" ] then >addparts rm -f /etc/partitions echo "disk0:" >/tmp/part echo "boot=\"/etc/boot\", device=\"/dev/rdsk/0s0\"" >>/tmp/part mkpart -f /tmp/part -x /tmp/partitions disk0 while read a do if [ "$a" = "usrx:" ] then echo "usr" >>addparts fi if [ "$a" = "usr2x:" ] then echo "usr2" >>addparts fi done </tmp/partitions mkpart -f /tmp/partitions -b diskx rm -f /tmp/part* else echo echo "About to install UNIX on your hard disk. This process will destroy" echo "any and all data currently on that disk, INCLUDING DOS FILES!" echo "If you have DOS files you would like to back up before proceding" echo "with system installation, enter n<RETURN> to the following question." echo echo "Do you wish to proceed with UNIX installation (y/n)? \c" read a if [ "$a" != "y" ] then exit 1 fi intlv="" echo echo "Do you wish to (re)format your hard disk (y/n)? \c" read fmt if [ "$fmt" = "y" ] then echo "\nDoes your controller support 1:1 interleave (y/n)? \c" read a if [ "$a" = "y" ] then intlv=1 else intlv=4 fi fi echo echo "Do you wish to do a complete surface analysis? Answer 'y' to write" echo "and read every sector, 'n' to just read every sector. NOTE: writing" echo "the whole disk takes a while... (y/n)? \c" read vf if [ "$vf" = "y" ] then verf="V" else verf="v" fi disksetup $intlv echo if [ "$fmt" = "n" ] then echo "Initializing hard disk." /etc/mkpart -i disk0 >/dev/null 2>&1 else echo "Reformatting and initializing hard disk." echo y | /etc/mkpart -i -F $intlv disk0 >/dev/null fi echo "\nCreating DOS partition (if any)." /etc/fdisk /dev/rdsk/0s0 <fdisk.data >/dev/null echo "\nCreating standard UNIX partitions.\n" echo y | /etc/mkpart -P rootus -P swap -P reserved -P alts -$verf disk0 >/dev/null echo "\nCreating additional UNIX partitions." while read pnam do /etc/mkpart -P $pnam disk0 >/dev/null 2>&1 done <addparts while read devnm do read devsiz read cylsiz read fsnam echo "\nCreating file system for" $fsnam /etc/mkfs $devnm $devsiz 1 $cylsiz >/dev/null echo "Labeling" $fsnam /etc/labelit $devnm $fsnam disk0 >/dev/null sync echo "Creating lost+found directory for" $fsnam /etc/mount $devnm /mnt >/dev/null 2>&1 mkdir /mnt/lost+found chmod 777 /mnt/lost+found for x in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 \ 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 \ 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 do >/mnt/lost+found/tmp.$x done rm -f /mnt/lost+found/* sync /etc/umount $devnm done <mkfs.data fi sync set +e echo "\nMounting hard disk root partition." /etc/mount /dev/dsk/0s1 /mnt >/dev/null 2>&1 mntcd=$? set -e if [ $mntcd -ne 0 ] then echo "\nMount of hard disk root partition failed. Attempting fsck." /etc/fsck -y /dev/dsk/0s1 /etc/mount /dev/dsk/0s1 /mnt fi echo "\nCopying files to hard disk root partition...please wait." cp unix /mnt find dev bin etc shlib -print | cpio -pdmau /mnt >/dev/null 2>&1 mv /mnt/etc/inittab2 /mnt/etc/inittab > /mnt/etc/mnttab cp addparts /mnt cp .profile /mnt [ -d /mnt/tmp ] || mkdir /mnt/tmp [ -d /mnt/mnt ] || mkdir /mnt/mnt [ -d /mnt/usr ] || mkdir /mnt/usr chmod 777 /mnt/tmp /mnt/mnt /mnt/usr cp INSTALL2 /mnt/tmp/INSTALL mv /mnt/bin/-sh /mnt/tmp/-sh find dev/console -print | cpio -pdmau /mnt/tmp >/dev/null 2>&1 sync /etc/umount /dev/dsk/0s1 sync sync echo echo "First stage of installation complete." echo "When you see \"Press any key to re-boot,\"" echo "remove the floppy disk and re-boot the system from the hard disk." echo "System installation will proceed automatically from there." uadmin 2 0