|
|
1.1 root 1: : Coh_420.post 07/13/93
2: : COHERENT Version 4.2.0
3: : Installation/Update postprocessing.
4:
5: # Now link a real kernel.
6:
7: CLS='[2J'
8:
9: mv /coherent /coherent.min
10: rm /autoboot
11: /etc/conf/bin/idtune -f `cat /conf/id-var`
12: sh /conf/id-cmd
13: /etc/conf/bin/idmkcoh -o /coherent
14: ln -f /coherent /autoboot
15:
16: if [ $# -gt 0 ]; then
17: /bin/echo $CLS
18: /conf/upd2tay.post
19: /bin/echo $CLS'
20: Before re-establishing your remote connections to other UUCP sites
21: or before other users on your system use the new mail utilities,
22: it is necessary to convert any existing mailboxes to the new mailbox
23: format used by Coherent 4.0. Failure to do this will result in
24: unpredictable behavior of the mail utilities.'
25:
26: /bin/echo '
27:
28: If you are updating from COHERENT 3.x, your mailboxes must be converted
29: to a new format in order for the mail utilities to work properly. If
30: you are updating from a previous COHERENT 4.x release, you should not
31: attempt to convert your mailbox format.
32:
33: Do you wish to convert existing mailboxes now? (y/n) \c'
34:
35: read answ
36: case $answ in
37: [nN]*)
38: /bin/echo '
39: To manually convert your system mailboxes, run:
40:
41: /bin/cvmail -m boxname
42:
43: for each mailbox in the directory /usr/spool/mail.
44:
45: To convert other files where you or other users of
46: your system may have saved mail messages, run:
47:
48: /bin/cvmail filename
49:
50: Press <Enter> to continue...\c'
51: read answ
52: ;;
53:
54: *) echo 'Converting mailboxes. This may take a few minutes...'
55: cd /usr/spool/mail
56: for name in *
57: do
58: /bin/cvmail -m $name
59: done
60: echo '
61: The system mailboxes have been converted to the format required
62: by the Coherent 4.0 mail utilities. If other users of your system
63: or yourself have previously saved mail messages to other files,
64: the mail command will detect whether or not these files are in the
65: new format and will prompt the user to run the cvmail command to
66: convert the mail file if necessary.
67:
68: Press <Enter> to continue...\c'
69: read answ
70: ;;
71: esac
72: else
73: /conf/taylor.post
74: fi
75:
76: : Optionally uncompress online manual pages.
77: MANPAGES=/usr/man/man.tar
78: root_free=`expr "\`df /dev/root\`" : '.*[ ]\([0-9]*\) blocks'`
79:
80: echo $CLS'
81: The online COHERENT manual pages in /usr/man are shipped in compressed form.
82: The compressed manual pages use about 2000 blocks (1 MB) of disk space.
83: The uncompressed manual pages use about 5000 blocks (2.5 MB).
84: '
85: if [ $root_free -lt 5000 ]; then
86: echo '
87: Your system has insufficient free space on the root filesystem to store
88: the uncompressed manual pages. You may uncompress and un-tar the manual
89: pages at a later date if you free up at least 5000 blocks on your root
90: filesystem.'
91:
92: else
93: echo '
94: You can either:
95: 1) Remove the manual pages,
96: 2) Leave the manual pages compressed, or
97: 3) Uncompress the manual pages.
98: The "man" command will work only if you uncompress the manual pages (option 3).
99: '
100: flag=1
101: while [ $flag -eq 1 ]
102: do
103: echo -n 'Please choose an option: '
104: read x
105: flag=0
106: case $x in
107: 1*) rm $MANPAGES.z;;
108: 2*) echo Leaving manual pages compressed in $MANPAGES.z;;
109: 3*) echo Extracting, please wait...
110: gzcat $MANPAGES.z | tar xofm -
111: rm $MANPAGES.z
112: echo Uncompressing and extracting complete. ;;
113: *) echo Please enter 1, 2 or 3.
114: flag=1;;
115: esac
116: done
117: fi
118:
119: echo '
120: Hit <Enter> to continue...\c'
121: read x
122:
123: if [ $# -eq 0 ]; then
124: : Optionally build /usr/dict/words.
125: echo $CLS'
126: The COHERENT dictionary in /usr/dict is shipped in compressed form.
127: The compressed dictionary uses about 350 blocks (.175 MB) of disk space.
128: The uncompressed dictionary uses about 1700 blocks (.85 MB).
129: You can either:
130: 1) Remove the dictionary,
131: 2) Leave the dictionary compressed, or
132: 3) Uncompress the dictionary.
133: The "spell" command will work only if you uncompress the dictionary (option 3).
134: '
135: flag=1
136: while [ $flag -eq 1 ]
137: do
138: echo -n 'Please choose an option: '
139: read x
140: flag=0
141: case $x in
142: 1*) rm /usr/dict/*.z;;
143: 2*) ;;
144: 3*) /usr/dict/Run
145: echo Uncompressing complete. ;;
146: *) echo Please enter 1, 2 or 3.
147: flag=1;;
148: esac
149: done
150: else
151: # If update and virtual consoles selected, make sure that
152: # /dev/console is not enabled for logins...
153: if egrep -s 'color|mono' /etc/ttys ;then
154: cp /etc/ttys /tmp &&
155: sed '/console/d' </tmp/ttys >/etc/ttys
156: fi
157: fi
158:
159: : Perform other housekeeping chores...
160:
161: echo '
162: Extracting keyboard table source files...'
163: cd /conf
164: /usr/bin/gzcat kbd.tar.z | tar xmf -
165: rm /conf/kbd.tar.z
166:
167: HELPFILE=/etc/helpfile.z
168: HELPINDEX=/etc/helpindex
169: if [ -f $HELPFILE ]; then
170: gunzip $HELPFILE
171: touch $HELPINDEX
172: fi
173:
174: rm -rf /tmp/drv/* /etc/drvld
175:
176: sync
177:
178: : Done.
179: echo $CLS'\c'
180:
181: # The following script code will be used to build the description for
182: # the main printer for the print spooler.
183:
184: /bin/echo "
185: Unlike previous versions of COHERENT, this version includes print spooling
186: software which will allow you to use multiple printers on your COHERENT
187: system. Earlier we asked you about your printer to determine which port
188: it was located on. Now we will complete your printer configuration so
189: that you may use the print spooler.
190: "
191:
192: PAR_SER=q
193:
194: while [ $PAR_SER = 'q' ]; do
195: echo '\nIs your printer a (s)erial or a (p)arallel printer ? (s/p) \c'
196: read PAR_SER
197:
198: case $PAR_SER in
199: s|S) PAR_SER=hpserial
200: ;;
201:
202: p|P) PAR_SER=default
203: ;;
204:
205: *) PAR_SER=q
206: ;;
207: esac
208: done
209:
210:
211: PR_TYPE='q'
212:
213: while [ $PR_TYPE = 'q' ]; do
214: echo 'Is this a laser printer? (y/n) \c'
215: read PR_TYPE
216:
217: case $PR_TYPE in
218:
219: y|Y) PRINT_DEV=/dev/hp
220: ;;
221:
222: n|N) PRINT_DEV=/dev/lp
223: ;;
224:
225: *) PR_TYPE=q
226: ;;
227: esac
228: done
229:
230: # Now build the print line
231:
232: echo "printer=main,$PRINT_DEV,$PAR_SER" >> /usr/spool/mlp/controls
233:
234: exit 0
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.