|
|
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: ! 28: clear ! 29: ! 30: echo "Testing permissions on /usr/lib/uucp." ! 31: if test -w /usr/lib/uucp ! 32: then ! 33: echo "Permissions appear to be acceptable." ! 34: ! 35: else ! 36: echo "Permissions are not correct! Setting correct permissions." ! 37: chmog 755 uucp uucp /usr/lib/uucp ! 38: fi ! 39: ! 40: echo "Testing for existence of Taylor configuration files..." ! 41: ! 42: if test -f /usr/lib/uucp/sys ! 43: then ! 44: echo "The file /usr/lib/uucp/sys Already exists. Aborting UUCP conversion process" ! 45: exit 0 ! 46: else ! 47: echo "The file /usr/lib/uucp/sys does not exist. Continuing..." ! 48: fi ! 49: ! 50: ! 51: if test -f /usr/lib/uucp/port ! 52: then ! 53: echo "The file /usr/lib/uucp/port already exists. Aborting UUCP conversion process." ! 54: exit 0 ! 55: else ! 56: echo "The file /usr/lib/uucp/port doesn't exist. Continuing..." ! 57: fi ! 58: ! 59: ! 60: if test -f /usr/lib/uucp/dial ! 61: then ! 62: echo "The file /usr/lib/uucp/port already exists. Aborting UUCP conversion process." ! 63: exit 0 ! 64: else ! 65: echo "The file /usr/lib/uucp/port doesn't exist. Continuing..." ! 66: fi ! 67: ! 68: sleep 4 ! 69: clear ! 70: ! 71: echo " ! 72: Now for the tricky part. This implementation of Taylor uucp does not use ! 73: the files /usr/lib/uucp/L.sys nor /usr/lib/uucp/Permissions. Instead, the ! 74: contents of the 2 files are merged into the single file /usr/lib/uucp/sys. ! 75: ! 76: This conversion process makes several assumptions. Please read them ! 77: carefully. ! 78: ! 79: 1) In the Permissions file, if you have specified NOWRITE and ! 80: NOREAD parameters, they follow the READ and WRITE parameters. ! 81: ! 82: 2) There is only 1 ACU entry in /usr/lib/uucp/L-devices. ! 83: ! 84: 3) If an L.sys entry occupies more than 1 line, the line ! 85: continuation character (backslash) is followed immediately ! 86: by a newline. ! 87: ! 88: 4) A single L.sys entry occupies no more than 2 lines. ! 89: ! 90: If you want to check your existing uucp configuration files against the ! 91: items just listed, you may abort the update process now with <ctrl><c>. ! 92: " ! 93: ! 94: echo "Do you wish to continue with the UUCP conversion? (y/n)\c" ! 95: read N ! 96: case $N in ! 97: n|N) echo "You can run this script at a later"; ! 98: echo "time by invoking /conf/upd2tay.post"; ! 99: exit 0; ! 100: ;; ! 101: *) echo "Now converting L.sys (/conf/taylor/cvlsys)."; ! 102: /conf/taylor/cvlsys; ! 103: ;; ! 104: esac ! 105: ! 106: echo "Press RETURN to continue.\c" ! 107: read N ! 108: ! 109: echo " ! 110: We will now convert /etc/modemcap to the /usr/lib/uucp/dial file ! 111: format required by Taylor uucp package. This will not alter the ! 112: contents of /etc/modemcap. It will build /usr/lib/uucp/dial from ! 113: /etc/modemcap's contents. ! 114: " ! 115: echo "Now converting modemcap (/conf/taylor/cvmodem)." ! 116: ! 117: /conf/taylor/cvmodem ! 118: ! 119: echo "Press RETURN to continue.\c" ! 120: read N ! 121: ! 122: echo " ! 123: The next step will be to convert the information in /usr/lib/uucp/L-devices ! 124: into the port information required by Taylor uucp. The data in L-devices ! 125: will not be altered, it will be used to build the file /usr/lib/uucp/port. ! 126: " ! 127: echo "Now converting L-devices (/conf/taylor/cvldev)." ! 128: ! 129: /conf/taylor/cvldev ! 130: ! 131: echo "Press RETURN to continue.\c" ! 132: read N ! 133: ! 134: clear ! 135: ! 136: echo " ! 137: This is your ONLY chance to save your existing UUCP programs that would ! 138: otherwise be overwritten by this update process. If you are running this ! 139: script for the umpteenth time and have already saved your old files, there ! 140: is no need to save them again, since they wouldn't exist anyway. ! 141: ! 142: The files that will be saved are: ================================== ! 143: uucico uuxqt = Please note that we are not = ! 144: uucp uux = overwriting L.sys, Permissions = ! 145: uucheck uuinstall = nor L-devices. They will be = ! 146: = left in place. = ! 147: ================================== ! 148: ! 149: They will be copied to the directory /tmp/tayupd and then tarred, compressed ! 150: and moved to /conf/taylor/olduucp.tar.z. ! 151: " ! 152: ! 153: TMP=/tmp/tayupd/usr ! 154: ! 155: echo "Do you wish to save your old uucp files ('q' to quit) (y/n/q)?\c" ! 156: ! 157: read N ! 158: case $N in ! 159: n|N) echo "Okay... we will procede with copying the new files into place."; ! 160: ;; ! 161: y|Y) mkdir -r $TMP/lib/uucp $TMP/lib/uucheck; ! 162: mkdir $TMP/bin; ! 163: cp -d /usr/bin/uucp $TMP/bin/; ! 164: cp -d /usr/bin/uux $TMP/uux; ! 165: cp -d /usr/bin/uuinstall $TMP/bin/; ! 166: rm /usr/bin/uuinstall; ! 167: cpdir -ade /usr/lib/uucheck $TMP/lib/uucheck; ! 168: cp -d /bin/uucheck $TMP/bin; ! 169: rm /bin/uucheck; ! 170: cp -d /usr/lib/uucp/uucico $TMP/lib/uucp/; ! 171: cp -d /usr/lib/uucp/uuxqt $TMP/lib/uucp/; ! 172: cp -d /usr/lib/uucp/uumkdir $TMP/lib/uucp/; ! 173: cp -d /usr/lib/uucp/uumvlog $TMP/lib/uucp/; ! 174: rm /usr/lib/uucp/uumkdir; ! 175: rm /usr/lib/uucp/uumvlog; ! 176: tar cvf /tmp/olduucp.tar /tmp/tayupd; ! 177: /usr/bin/gzip /tmp/olduucp.tar; ! 178: cp /tmp/olduucp.tar.Z /conf/taylor/; ! 179: echo "Removing saved directory."; ! 180: rm /tmp/olduucp.tar.Z; ! 181: rm -r /tmp/tayupd; ! 182: echo "Files saved to /conf/taylor/olduucp.tar.z." ! 183: ;; ! 184: q|Q) exit 0; ! 185: ;; ! 186: esac ! 187: ! 188: echo "Copying new files into place." ! 189: cpdir -ade /tmp/tay_new_files/usr /usr ! 190: rm -r /tmp/tay_new_files ! 191: ! 192: echo "Setting permissions..." ! 193: chmog 6511 uucp uucp /usr/lib/uucp/uucico /usr/lib/uucp/uuxqt /usr/bin/uucp /usr/bin/uux ! 194: chmog 6500 uucp uucp /usr/bin/uucheck ! 195: chmog 400 uucp uucp /usr/lib/uucp/sys /usr/lib/uucp/dial /usr/lib/uucp/port ! 196: chmog 500 uucp uucp /usr/lib/uucp/uumvlog ! 197: ! 198: echo "Press RETURN to continue.\c" ! 199: read N ! 200: ! 201: echo " ! 202: You have now installed the Coherent implementation of the Taylor uucp ! 203: package. You should review the information in the sys, dial and port ! 204: files in the directory /usr/lib/uucp before using the new uucp facilities. ! 205: " ! 206: ! 207: echo "Press RETURN to continue...\c" ! 208: read N ! 209: clear ! 210: echo " ! 211: Important note: The manner in which Taylor uucp handles dialing via a ! 212: modem is vastly different from COHERENT uucp's method. Instead of relying ! 213: upon data in /etc/modemcap, Taylor uucp literally 'chats' with the modem ! 214: to set register values and to dial. When a connection has ended, Taylor ! 215: uucp can be configured to chat with the modem again to set registers or ! 216: perform other functions. ! 217: ! 218: Because of this, you may encounter difficulty getting Taylor to dial out ! 219: during your initial attempts to use it. Please refer to the UUCP articles ! 220: in your new COHERENT manual for making dial file entries. ! 221: " ! 222: ! 223: echo "Press RETURN to continue...\c" ! 224: read N ! 225: exit 0
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.