Annotation of coherent/f/conf/upd2tay.post, revision 1.1

1.1     ! root        1: echo "
        !             2: We will now convert your existing uucp configuration to those required
        !             3: by this implementation of Taylor uucp. This is not a destructive process.
        !             4: Before existing files are overwritten, you will be given the opportunity
        !             5: to save them to a tarred archive.
        !             6: 
        !             7: The conversion process consists of building new Taylor uucp configuration
        !             8: files from the data in your existing files, saving your old uucp files
        !             9: to a tarred archive and finally copying the new files into place. The
        !            10: conversion of the existing data files may have problems if you are performing
        !            11: undocumented functions with the existing uucp facilities. For example,
        !            12: if you have multiple entries for a single uucp site in L.sys, you may
        !            13: not achieve the expected results with this conversion. If you run special
        !            14: shell scripts to swap L-devices with other files, which some COHERENT users
        !            15: have done in order to use multiple modems on their systems, this conversion
        !            16: process will only deal with the existing L-devices file. This means that the
        !            17: data from the other files used to swap with L-devices will not be accounted
        !            18: for.
        !            19: 
        !            20: If, while running the conversion process you notice messages that indicate
        !            21: potential problems, write them down. If necessary, you can always re-run this
        !            22: script (/conf/upd2tay.post).
        !            23: "
        !            24: echo "Press RETURN to continue.\c"
        !            25: read N
        !            26: 
        !            27: clear
        !            28: 
        !            29: echo "
        !            30: Now for the tricky part. This implementation of Taylor uucp does not use
        !            31: the files /usr/lib/uucp/L.sys nor /usr/lib/uucp/Permissions. Instead, the
        !            32: contents of the 2 files are merged into the single file /usr/lib/uucp/sys.
        !            33: 
        !            34: This conversion process makes several assumptions. Please read them
        !            35: carefully.
        !            36: 
        !            37:        1) In the Permissions file, if you have specified NOWRITE and 
        !            38:           NOREAD parameters, they follow the READ and WRITE parameters.
        !            39: 
        !            40:        2) There is only 1 ACU entry in /usr/lib/uucp/L-devices.
        !            41: 
        !            42:        3) If an L.sys entry occupies more than 1 line, the line
        !            43:           continuation character (backslash) is followed immediately 
        !            44:           by a newline.
        !            45: 
        !            46:        4) A single L.sys entry occupies no more than 2 lines.
        !            47: 
        !            48: If you feel a bit uneasy about this, have that sinking feeling, feel a
        !            49: bit queazy, feel nervous or just want to plain old check your existing
        !            50: uucp configuration files against the items just listed, you may abort
        !            51: the update process now.
        !            52: "
        !            53: 
        !            54: echo "Do you wish to continue with this update (y/n)?\c"
        !            55: read N
        !            56: case $N in
        !            57:        n|N)    echo "Do I detect a streak of yellow down your back?";
        !            58:                echo "You can run this script at a later";
        !            59:                echo "time by invoking /conf/upd2tay.post";
        !            60:                exit 1;
        !            61:                ;;
        !            62:        *)      echo "Brave soul! Onward we venture!";
        !            63:                echo "Running /conf/taylor/cvlsys.";
        !            64:                /conf/taylor/cvlsys;
        !            65:                ;;
        !            66: esac
        !            67: 
        !            68: echo "
        !            69: We will now convert /etc/modemcap to the /usr/lib/uucp/dial file
        !            70: format required by Taylor uucp package. This will not alter the
        !            71: contents of /etc/modemcap. It will build /usr/lib/uucp/dial from
        !            72: /etc/modemcap's contents.
        !            73: "
        !            74: echo "Running /conf/taylor/cvmodem."
        !            75: 
        !            76: /conf/taylor/cvmodem
        !            77: 
        !            78: echo "Press RETURN to continue.\c"
        !            79: read N
        !            80: 
        !            81: echo "
        !            82: The next step will be to convert the information in /usr/lib/uucp/L-devices
        !            83: into the port information required by Taylor uucp. The data in L-devices
        !            84: will not be altered, it will be used to built the file /usr/lib/uucp/port.
        !            85: "
        !            86: echo "Running /conf/taylor/cvldev."
        !            87: 
        !            88: /conf/taylor/cvldev
        !            89: 
        !            90: echo "Press RETURN to continue.\c"
        !            91: read N
        !            92: 
        !            93: clear
        !            94: 
        !            95: echo "
        !            96: This is your chance to save your existing programs that would otherwise
        !            97: be overwritten by this update process. If you are running this script for
        !            98: the umpteenth time and have already saved your old files, there is no need
        !            99: to save them again, since they wouldn't exist anyway.
        !           100: 
        !           101: The files that will be saved are: 
        !           102:        uucico          uuxqt           Please note that we are not
        !           103:        uucp            uux             overwriting L.sys, Permissions
        !           104:        uucheck         uuinstall       nor L-devices. They will be
        !           105:                                        left in place.
        !           106: 
        !           107: They will be copied to the directory /tmp/tayupd and then tarred, compressed
        !           108: and moved to /conf/taylor/olduucp.tar.Z.
        !           109: "
        !           110: 
        !           111: TMP=/tmp/tayupd/usr
        !           112: 
        !           113: echo "Do you wish to save your old uucp files ('q' to quit) (y/n/q)?\c"
        !           114: 
        !           115: read N
        !           116: case $N in
        !           117:        n|N)    echo "Okay... we will procede with copying the new files into place.";
        !           118:                ;;
        !           119:        y|Y)    mkdir -r $TMP/lib/uucp $TMP/lib/uucheck;
        !           120:                mkdir $TMP/bin;
        !           121:                cp -d /usr/bin/uucp $TMP/bin/;
        !           122:                cp -d /usr/bin/uux $TMP/uux;
        !           123:                cp -d /usr/bin/uuinstall $TMP/bin/;             
        !           124:                rm /usr/bin/uuinstall;
        !           125:                cpdir -ade /usr/lib/uucheck $TMP/lib/uucheck;
        !           126:                cp -d /bin/uucheck $TMP/bin;
        !           127:                rm /bin/uucheck;
        !           128:                cp -d /usr/lib/uucp/uucico $TMP/lib/uucp/;
        !           129:                cp -d /usr/lib/uucp/uuxqt $TMP/lib/uucp/;
        !           130:                cp -d /usr/lib/uucp/uumkdir $TMP/lib/uucp/;
        !           131:                rm /usr/lib/uucp/uumkdir;
        !           132:                tar cvf /tmp/olduucp.tar /tmp/tayupd;
        !           133:                compress /tmp/olduucp.tar;
        !           134:                cp /tmp/olduucp.tar.Z /conf/taylor/;
        !           135:                echo "Removing saved directory.";
        !           136:                rm /tmp/olduucp.tar.Z;
        !           137:                rm -r /tmp/tayupd;
        !           138:                echo "Files saved to /conf/taylor/olduucp.tar.Z."
        !           139:                ;;
        !           140:        q|Q)    exit 0;
        !           141:                ;;
        !           142: esac
        !           143: 
        !           144: echo "Copying new files into place."
        !           145: cpdir -ade /tmp/tay_new_files/usr /usr
        !           146: rm -r /tmp/tay_new_files
        !           147: 
        !           148: echo "Setting permissions..."
        !           149: chmog 6511 uucp uucp /usr/lib/uucp/uucico /usr/lib/uucp/uuxqt /usr/bin/uucp /usr/bin/uux
        !           150: chmog 6500 uucp uucp /usr/bin/uucheck
        !           151: chmog 400 uucp uucp /usr/lib/uucp/sys /usr/lib/uucp/dial /usr/lib/uucp/port
        !           152: 
        !           153: echo "Press RETURN to continue.\c"
        !           154: read N
        !           155: 
        !           156: echo "
        !           157: You have now installed the Coherent implementation of the Taylor uucp
        !           158: package. You should review the information in the sys, dial and port
        !           159: files in the directory /usr/lib/uucp before using the new uucp facilities.
        !           160: "

unix.superglobalmegacorp.com

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