Annotation of coherent/a/conf/CohUpd320.post, revision 1.1.1.1

1.1       root        1: : CohUpd320.post 9/6/91
                      2: : COHERENT Update Version 3.2.0.
                      3: : Installation postprocessing.
                      4: 
                      5: cd /
                      6: 
                      7: : Set FIRST to indicate if first attempt at update installation.
                      8: if [ -f /conf/CohUpd320.tmp ]
                      9: then
                     10:        if [ ! -f /coherent.old ]
                     11:        then
                     12:                echo '/coherent.old does not exist, reinstallation failed.'
                     13:                exit 1
                     14:        fi
                     15:        mv -f /coherent.old /coherent
                     16:        FIRST=false
                     17: else
                     18:        FIRST=true
                     19: fi
                     20: 
                     21: : Patch the new /coherent.
                     22: echo '
                     23: cThis update procedure replaces your existing COHERENT system
                     24: with an updated version.  It renames the previous version (file /coherent)
                     25: to /coherent.old and puts the updated version in file /coherent.
                     26: When you reboot after installation, you must type "coherent"
                     27: to boot the new system.
                     28: '
                     29: 
                     30: : Remove /autoboot if it exists.
                     31: if [ -f /autoboot ]
                     32: then
                     33:        rm /autoboot
                     34:        echo '
                     35: The update procedure deletes the file /autoboot which
                     36: causes your system to boot COHERENT automatically.
                     37: After you have rebooted successfully, type
                     38:        ln /coherent /autoboot
                     39: if you want your system to boot automatically.
                     40: '
                     41: fi
                     42: 
                     43: : Determine the desired keyboard configuration.
                     44: echo -n 'Hit <Enter> to continue...'
                     45: read x
                     46: echo '
                     47: cYour current COHERENT system contains built-in support for either
                     48: an American, German or French keyboard layout.  This COHERENT update
                     49: adds support for user-configurable keyboard layouts.  However,
                     50: user-configurable keyboard layouts may not work correctly with
                     51: some keyboards which are not fully IBM-AT compatible.  If you wish to
                     52: be able to change keyboard layouts at runtime, you must select option 4.
                     53: 
                     54: Keyboard layouts:
                     55:        1       American
                     56:        2       French
                     57:        3       German
                     58:        4       User-configurable
                     59: '
                     60: while true; do
                     61:        echo -n 'Enter 1-4: '
                     62:        read x
                     63:        case $x in
                     64:                1|A*)   KB=kb.a;;
                     65:                2|F*)   KB=kb_f.a;;
                     66:                3|G*)   KB=kb_d.a;;
                     67:                4|U*)   KB=nkb.a
                     68:                        echo '
                     69: If the user-configurable keyboard layout does not work with your keyboard
                     70: when you reboot after update installation, you will need to boot your
                     71: old COHERENT system by typing "coherent.old" at the "AT boot?" prompt.
                     72: Then install the update again with a different keyboard layout.
                     73: '
                     74:                        /etc/kbdinstall -u;;
                     75:                *)      continue;;
                     76:        esac
                     77:        break
                     78: done
                     79: KBUNDEF="-u iscon_"
                     80: KBPATCH="drvl_+20=iscon_"
                     81: 
                     82: : Determine the desired root hard disk device configuration.
                     83: echo -n 'Hit <Enter> to continue...'
                     84: read x
                     85: echo '
                     86: cThe root filesystem of your current COHERENT system
                     87: is on either a standard AT-compatible hard disk or on an
                     88: Adaptec AHA-154x series SCSI host adapter.
                     89: 
                     90: Root hard disk:
                     91:        1       AT-compatible (MFM/RLL/IDE)
                     92:        2       Adaptec AHA-154x (SCSI)
                     93: '
                     94: while true; do
                     95:        echo -n 'Enter 1 or 2: '
                     96:        read x
                     97:        case $x in
                     98:                1)      HD=at.a
                     99:                        HDUNDEF="-u atcon_"
                    100:                        HDPATCH="drvl_+110=atcon_";;
                    101:                2)      HD=aha154x.a
                    102:                        HDUNDEF="-u sdcon_"
                    103:                        HDPATCH="drvl_+130=sdcon_";;
                    104:                *)      continue;;
                    105:        esac
                    106:        break
                    107: done
                    108: 
                    109: : Build COHERENT kernel into /coherent.new.
                    110: if [ -f /coherent.old ]
                    111: then
                    112:        mv /coherent.old /coherent.older
                    113:        echo Renamed previous /coherent.old to /coherent.older...
                    114:        echo -n 'Hit <Enter> to continue...'
                    115:        read x
                    116: fi
                    117: cd /conf
                    118: (/bin/ld $KBUNDEF $HDUNDEF -o /coherent.new kernel320.o $KB $HD mm.a tty.a support.a \
                    119:        && /conf/patch /coherent.new $KBPATCH $HDPATCH \
                    120:        && /conf/patch /coherent.new drvl_+30=lpcon_ drvl_+40=flcon_ drvl_+80=rmcon_ \
                    121:        && /etc/cohpatch) || echo 'Update installation failed.' && exit 1
                    122: chmod 400 /coherent
                    123: chown sys /coherent
                    124: chgrp sys /coherent
                    125: 
                    126: : Replace the shell.  Cannot copy over busy shared text program.
                    127: if $FIRST
                    128: then
                    129:        echo -n 'Hit <Enter> to continue...'
                    130:        read x
                    131:        echo '
                    132: cThe update installs new versions of many files onto your existing system.
                    133: For the important file /bin/sh, it saves the old version
                    134: in /bin/sh.old in case you need to use the old version.
                    135: '
                    136:        mv /bin/sh /bin/sh.old
                    137:        mv /bin/sh.320 /bin/sh
                    138: fi
                    139: 
                    140: : Load serial drivers via /etc/drvld.all.
                    141: if $FIRST
                    142: then
                    143:        echo "/etc/drvld -r /drv/al0" >>/etc/drvld.all
                    144:        echo "/etc/drvld -r /drv/al1" >>/etc/drvld.all
                    145:        echo -n 'Hit <Enter> to continue...'
                    146:        read x
                    147:        echo '
                    148: cPrevious versions included support for serial lines COM1 through COM4
                    149: as part of /coherent.  In order to provide additional flexibilty,
                    150: COHERENT V3.2 now supports the serial lines as loadable device drivers.
                    151: When you boot COHERENT, file /etc/drvld.all loads the serial line drivers.
                    152: '
                    153: fi
                    154: 
                    155: : Uncompress files shipped compressed for space reasons.
                    156: echo -n 'Hit <Enter> to continue...'
                    157: read x
                    158: cd /
                    159: echo Uncompressing COHERENT update files, please wait...
                    160: uncompress /conf/V320.tar.Z
                    161: echo Extracting COHERENT update files, please wait...
                    162: tar xfm /conf/V320.tar
                    163: rm /conf/V320.tar
                    164: 
                    165: : Rebuild command and library help index files.
                    166: /bin/help -r '-d@' -f/usr/lib/helpfile -i/usr/lib/helpindex
                    167: /bin/help -r '-d#' -f/etc/helpfile -i/etc/helpindex
                    168: 
                    169: : Optionally uncompress online manual update pages.
                    170: : This takes the same action as the user took with the original pages.
                    171: echo -n 'Hit <Enter> to continue...'
                    172: read x
                    173: if [ -d /usr/man/COHERENT ]
                    174: then
                    175:        echo -n 'c'
                    176:        echo Uncompressing updated COHERENT online manual pages, please wait...
                    177:        uncompress /usr/man/updman.tar.Z
                    178:        echo Extracting updated COHERENT online manual pages, please wait...
                    179:        cd /usr/man
                    180:        tar xfm /usr/man/updman.tar
                    181:        rm /usr/man/updman.tar
                    182:        cat /usr/man/updman.index >>/usr/man/man.index
                    183:        sort -uo /usr/man/man.index /usr/man/man.index
                    184:        cat /usr/man/updman.help >>/usr/man/man.help
                    185:        echo
                    186: elif [ -f /usr/man/man.tar.Z ]
                    187: then
                    188:        echo '
                    189: cBecause you left the COHERENT online manual pages in compressed form
                    190: in file /usr/man/man.tar.Z when you initially installed COHERENT,
                    191: this update leaves the updated manual pages in compressed form
                    192: in file /usr/man/updman.tar.Z.
                    193: '
                    194: else
                    195:        rm /usr/man/updman.tar.Z
                    196:        echo '
                    197: cBecause you removed the COHERENT online manual pages when you initially
                    198: installed COHERENT, this update does not install updated online manual pages.
                    199: '
                    200: fi
                    201: 
                    202: echo -n 'Hit <Enter> to continue...'
                    203: read x
                    204: echo '
                    205: cAfter installation is finished, you must shut down your system and
                    206: reboot to try the updated version of COHERENT.  When you reboot,
                    207: type "coherent" at the "AT boot?" prompt to boot the new system.
                    208: If the boot fails, reboot again and type "coherent.old"
                    209: at the "AT boot?" prompt to boot your existing COHERENT system;
                    210: then try installing the update again with different options.
                    211: '
                    212: echo -n 'Hit <Enter> to continue...'
                    213: read x
                    214: 
                    215: : Done.
                    216: touch /conf/CohUpd320.tmp
                    217: sync
                    218: exit 0
                    219: 
                    220: : end of CohUpd320.post

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.