1 #---------------------------------------------------------------------------
6 # last edit-date: [Sun Feb 19 19:20:42 1995]
8 #---------------------------------------------------------------------------
11 # assumptions: - 8 screens configured
12 # - /dev/ttyv0 ... /dev/ttyv7 exist
14 #---------------------------------------------------------------------------
16 # start xdm on screen 8
20 # setup german keyboard layout
24 # setup keyboard delay & rate
31 # constuct a new /etc/motd file
35 # setup cursor start and end scanline
42 #-----------------------------------------------------
43 # construct /etc/motd file
44 #-----------------------------------------------------
46 if [ X${construct_motd} = X"YES" ]
50 if [ ! -f /etc/motd ]; then
51 install -c -o root -g wheel -m 664 /dev/null /etc/motd
55 sysctl -n kern.version | sed 1q > $T
57 sed '1,/^$/d' < /etc/motd >> $T
58 cmp -s $T /etc/motd || cp $T /etc/motd
60 echo 'runtime link editor directory cache'
67 sed '1,/^$/d' < /etc/motd >> $T
75 #-----------------------------------------------------
77 #-----------------------------------------------------
79 echo -n 'starting local daemons:'
81 # Kerberos runs ONLY on the Kerberos server machine
82 if [ X${kerberos_server} = X"YES" ]; then
83 echo -n ' kerberos'; kerberos >> /var/log/kerberos.log &
88 #-----------------------------------------------------
89 # check for correct driver and driver version matching
90 #-----------------------------------------------------
92 if [ -x /usr/sbin/ispcvt ]
97 #--------------------------------------------------
98 # loading fonts into vga
99 #--------------------------------------------------
100 echo 'console driver type: pcvt'
101 if [ -x /usr/sbin/loadfont -a -x /usr/sbin/scon ]
103 adaptor=`/usr/sbin/scon -a`
104 if [ $adaptor = VGA ]
106 echo 'loading 25 lines base font into character set 0'
107 /usr/sbin/loadfont -c0 -f/usr/share/misc/pcvtfonts/vt220l.816
108 echo 'loading 25 lines extension font into character set 1'
109 /usr/sbin/loadfont -c1 -f/usr/share/misc/pcvtfonts/vt220h.816
110 echo 'loading 28 lines base font into character set 2'
111 /usr/sbin/loadfont -c2 -f/usr/share/misc/pcvtfonts/vt220l.814
112 echo 'loading 28 lines extension font into character set 3'
113 /usr/sbin/loadfont -c3 -f/usr/share/misc/pcvtfonts/vt220h.814
114 echo 'loading 40 lines base font into character set 4'
115 /usr/sbin/loadfont -c4 -f/usr/share/misc/pcvtfonts/vt220l.810
116 echo 'loading 40 lines extension font into character set 5'
117 /usr/sbin/loadfont -c5 -f/usr/share/misc/pcvtfonts/vt220h.810
118 echo 'loading 50 lines base font into character set 6'
119 /usr/sbin/loadfont -c6 -f/usr/share/misc/pcvtfonts/vt220l.808
120 echo 'loading 50 lines extension font into character set 7'
121 /usr/sbin/loadfont -c7 -f/usr/share/misc/pcvtfonts/vt220h.808
122 elif [ $adaptor = EGA ]
124 echo 'loading 25 lines base font into character set 0'
125 /usr/sbin/loadfont -c0 -f/usr/share/misc/pcvtfonts/vt220l.814
126 echo 'loading 25 lines extension font into character set 1'
127 /usr/sbin/loadfont -c1 -f/usr/share/misc/pcvtfonts/vt220h.814
128 echo 'loading 35 lines base font into character set 2'
129 /usr/sbin/loadfont -c2 -f/usr/share/misc/pcvtfonts/vt220l.810
130 echo 'loading 35 lines extension font into character set 3'
131 /usr/sbin/loadfont -c3 -f/usr/share/misc/pcvtfonts/vt220h.810
133 # echo 'loading 43 lines base font into character set 2'
134 # /usr/sbin/loadfont -c2 -f/usr/share/misc/pcvtfonts/vt220l.808
135 # echo 'loading 43 lines extension font into character set 3'
136 # /usr/sbin/loadfont -c3 -f/usr/share/misc/pcvtfonts/vt220h.808
141 #--------------------------------------------------
142 # setting screen sizes and emulation
143 #--------------------------------------------------
144 if [ -x /usr/sbin/scon ]
146 if [ $adaptor = VGA ]
149 echo 'switching to 28 lines and VT/HP-emulation'
150 elif [ $adaptor = EGA ]
153 echo 'switching to 25 lines and VT/HP-emulation'
156 echo 'switching to VT/HP-emulation'
159 # get monitor type (mono/color)
161 monitor=`/usr/sbin/scon -m`
165 for device in /dev/ttyv*
170 /usr/sbin/scon -d$device $size -H
174 if [ X${set_cursor} = X"YES" -a -x /usr/sbin/cursor ]
176 /usr/sbin/cursor -d$device -s$set_cur_start -e$set_cur_end
179 # if monochrome monitor, set color palette to use a higher intensity
181 if [ $monitor = MONO ]
183 if [ $adaptor = VGA ]
185 /usr/sbin/scon -d$device -p8,60,60,60
194 # set screensaver timeout to one minute
199 #------------------------------------------------------
200 # if desired, setup keyboard for german keyboard layout
201 #------------------------------------------------------
203 if [ X${set_keybd} = X"YES" -a -x /usr/sbin/kcon ]
205 echo 'switching to german keyboard layout'
209 #------------------------------------------------------
210 # if desired, setup rate and delay keyboard values
211 #------------------------------------------------------
213 if [ X${set_keydr} = X"YES" -a -x /usr/sbin/kcon ]
215 echo setting keyboard typematic rate = $set_keydr_rate and delay = $set_keydr_delay
216 /usr/sbin/kcon -r $set_keydr_rate -d $set_keydr_delay
219 #--------------------------------------------------
220 # if desired, start xdm on screen 8
221 #--------------------------------------------------
223 if [ X${xdm_start} = X"YES" -a -x /usr/X386/bin/xdm ]
231 #--------------------------------------------------
232 # cp /etc/ttys corresponding to console driver
233 #--------------------------------------------------
235 if [ -f /etc/ttys.pcvt ]
237 echo 'copying /etc/ttys.pcvt -> /etc/ttys'
238 cp /etc/ttys.pcvt /etc/ttys
242 echo 'console driver type: not pcvt or pcvt utility/driver mismatch:'
243 echo '--------------------------------------------------------------'
245 echo '--------------------------------------------------------------'
246 if [ -f /etc/ttys.pccons ]
248 echo 'copying /etc/ttys.pccons -> /etc/ttys'
249 cp /etc/ttys.pccons /etc/ttys
253 echo 'console driver type: not pcvt'
254 if [ -f /etc/ttys.pccons ]
256 echo 'copying /etc/ttys.pccons -> /etc/ttys'
257 cp /etc/ttys.pccons /etc/ttys
263 # EOF ----------------------------------------------------------------------