rc revision 1.124 1 1.124 cjs # $NetBSD: rc,v 1.124 1999/04/01 03:58:44 cjs Exp $
2 1.73 perry # originally from: @(#)rc 8.2 (Berkeley) 3/17/94
3 1.1 cgd
4 1.1 cgd # System startup script run by init on autoboot
5 1.1 cgd # or after single-user.
6 1.1 cgd # Output and error are redirected to console by init,
7 1.1 cgd # and the console is the controlling terminal.
8 1.1 cgd
9 1.1 cgd stty status '^T'
10 1.1 cgd
11 1.1 cgd # Set shell to ignore SIGINT (2), but not children;
12 1.1 cgd # shell catches SIGQUIT (3) and returns to single user after fsck.
13 1.1 cgd trap : 2
14 1.1 cgd trap : 3 # shouldn't be needed
15 1.1 cgd
16 1.68 mycroft export HOME=/
17 1.96 jonathan export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin
18 1.50 thorpej
19 1.50 thorpej # Configure ccd devices.
20 1.63 mrg if [ -f /etc/ccd.conf ]; then
21 1.50 thorpej ccdconfig -C
22 1.50 thorpej fi
23 1.107 tron
24 1.107 tron # Configure raid devices.
25 1.107 tron for dev in 0 1 2 3; do
26 1.107 tron if [ -f /etc/raid$dev.conf ]; then
27 1.107 tron raidctl -c /etc/raid$dev.conf raid$dev
28 1.107 tron fi
29 1.107 tron done
30 1.1 cgd
31 1.79 thorpej # Add all block-type swap devices; these might be necessary
32 1.79 thorpej # during disk checks.
33 1.79 thorpej swapctl -A -t blk
34 1.79 thorpej
35 1.63 mrg if [ -e /fastboot ]; then
36 1.38 cgd echo "Fast boot: skipping disk checks."
37 1.68 mycroft elif [ "$1" = autoboot ]; then
38 1.38 cgd echo "Automatic boot in progress: starting file system checks."
39 1.1 cgd fsck -p
40 1.1 cgd case $? in
41 1.1 cgd 0)
42 1.1 cgd ;;
43 1.1 cgd 2)
44 1.1 cgd exit 1
45 1.1 cgd ;;
46 1.1 cgd 4)
47 1.35 cgd echo "Rebooting..."
48 1.1 cgd reboot
49 1.38 cgd echo "Reboot failed; help!"
50 1.1 cgd exit 1
51 1.1 cgd ;;
52 1.1 cgd 8)
53 1.38 cgd echo "Automatic file system check failed; help!"
54 1.1 cgd exit 1
55 1.1 cgd ;;
56 1.1 cgd 12)
57 1.38 cgd echo "Boot interrupted."
58 1.1 cgd exit 1
59 1.1 cgd ;;
60 1.1 cgd 130)
61 1.1 cgd # interrupt before catcher installed
62 1.1 cgd exit 1
63 1.1 cgd ;;
64 1.1 cgd *)
65 1.38 cgd echo "Unknown error; help!"
66 1.1 cgd exit 1
67 1.1 cgd ;;
68 1.1 cgd esac
69 1.1 cgd fi
70 1.1 cgd
71 1.38 cgd trap "echo 'Boot interrupted.'; exit 1" 3
72 1.1 cgd
73 1.1 cgd umount -a >/dev/null 2>&1
74 1.83 drochner mount /
75 1.1 cgd rm -f /fastboot # XXX (root now writeable)
76 1.40 cgd
77 1.90 veego if [ -f /etc/rc.subr ]; then
78 1.90 veego . /etc/rc.subr
79 1.89 cjs else
80 1.90 veego echo "Can't read /etc/rc.subr; aborting."
81 1.89 cjs exit 1;
82 1.89 cjs fi
83 1.89 cjs
84 1.71 mycroft if [ -f /etc/rc.conf ]; then
85 1.63 mrg . /etc/rc.conf
86 1.63 mrg fi
87 1.63 mrg
88 1.89 cjs if [ "$rc_configured" != YES ]; then
89 1.89 cjs echo "/etc/rc.conf is not configured. Multiuser boot aborted."
90 1.89 cjs exit 1
91 1.89 cjs fi
92 1.89 cjs
93 1.40 cgd # set flags on ttys. (do early, in case they use tty for SLIP in netstart)
94 1.40 cgd echo 'setting tty flags'
95 1.40 cgd ttyflags -a
96 1.1 cgd
97 1.83 drochner # load kernel modules specified in /etc/lkm.conf if the /usr filesystem
98 1.83 drochner # is already present with "/" or can be mounted now
99 1.93 drochner if checkyesno lkm && [ -f /etc/rc.lkm ]; then
100 1.83 drochner mount /usr >/dev/null 2>&1
101 1.83 drochner if [ -x /usr/bin/ld ]; then
102 1.83 drochner lkmstage=BEFORENET
103 1.83 drochner . /etc/rc.lkm
104 1.83 drochner fi
105 1.63 mrg fi
106 1.63 mrg
107 1.124 cjs mount_critical_filesystems local
108 1.120 mellon
109 1.1 cgd # set hostname, turn on network
110 1.1 cgd echo 'starting network'
111 1.76 scottr sh /etc/netstart
112 1.76 scottr if [ $? -ne 0 ]; then
113 1.76 scottr exit 1
114 1.76 scottr fi
115 1.1 cgd
116 1.124 cjs mount_critical_filesystems network
117 1.99 veego
118 1.99 veego # Network Address Translation...
119 1.100 lukem if checkyesno ipnat && [ -f /etc/ipnat.conf ]; then
120 1.99 veego echo 'installing NAT rules ... '
121 1.100 lukem if ! checkyesno ipfilter || [ ! -f /etc/ipf.conf ]; then
122 1.99 veego ipf -E -Fa
123 1.99 veego fi
124 1.99 veego ipnat -F -f /etc/ipnat.conf
125 1.99 veego fi
126 1.79 thorpej
127 1.79 thorpej # "Critical" file systems are now mounted. Go ahead and swap
128 1.79 thorpej # to files now, since they will be residing in the critical file
129 1.79 thorpej # systems (or, at least, better).
130 1.79 thorpej swapctl -A -t noblk
131 1.97 mrg
132 1.97 mrg # Check for no swap, and warn about it unless that is desired.
133 1.100 lukem if ! checkyesno no_swap; then
134 1.97 mrg swapctl -s | grep 'no swap devices configured' > /dev/null && \
135 1.97 mrg echo "WARNING: no swap space configured!"
136 1.97 mrg fi
137 1.26 deraadt
138 1.41 jtc # clean up left-over files
139 1.41 jtc rm -f /etc/nologin
140 1.41 jtc rm -f /var/spool/lock/LCK.*
141 1.41 jtc rm -f /var/spool/uucp/STST/*
142 1.45 cgd (cd /var/run && { rm -rf -- *; install -c -m 664 -g utmp /dev/null utmp; })
143 1.108 abs
144 1.111 mrg # get the system dmesg output, hopefully containing the boot messages
145 1.111 mrg # $dmesg_flags is imported from /etc/rc.conf
146 1.111 mrg if checkyesno dmesg; then
147 1.111 mrg dmesg $dmesg_flags > /var/run/dmesg.boot
148 1.111 mrg fi
149 1.41 jtc
150 1.84 veego # start the system logger first, so that all messages from daemons
151 1.84 veego # are logged, then start savecore to get a dump on low memory systems
152 1.84 veego # and then start the name server.
153 1.63 mrg
154 1.89 cjs if checkyesno syslogd; then
155 1.63 mrg echo 'starting system logger'
156 1.119 perry # Transitional symlink for old binaries
157 1.119 perry if [ ! -h /dev/log ] ; then
158 1.119 perry ln -sf /var/run/log /dev/log
159 1.119 perry fi
160 1.119 perry rm -f /var/run/log
161 1.63 mrg syslogd $syslogd_flags
162 1.94 lukem fi
163 1.94 lukem
164 1.94 lukem # Enable ipmon (only useful if ipfilter is running)
165 1.94 lukem # NOTE: requires the IPFILTER_LOG kernel option.
166 1.94 lukem if checkyesno ipmon; then
167 1.94 lukem echo 'starting ipmon'
168 1.94 lukem ipmon $ipmon_flags &
169 1.63 mrg fi
170 1.63 mrg
171 1.84 veego # /var/crash should be a directory or a symbolic link
172 1.84 veego # to the crash directory if core dumps are to be saved.
173 1.89 cjs if checkyesno savecore; then
174 1.106 hubertf if [ -d /var/crash/. ]; then
175 1.89 cjs echo checking for core dump...
176 1.89 cjs savecore $savecore_flags /var/crash
177 1.89 cjs else
178 1.89 cjs logger -s "WARNING: no /var/crash directory; savecore not run."
179 1.84 veego fi
180 1.84 veego fi
181 1.84 veego
182 1.89 cjs if checkyesno named; then
183 1.89 cjs echo 'starting name server'; named $named_flags
184 1.89 cjs fi
185 1.89 cjs
186 1.89 cjs # set time, if requested
187 1.89 cjs if checkyesno ntpdate; then
188 1.91 mikel if [ -z "$ntpdate_hosts" ]; then
189 1.101 lukem ntpdate_hosts=`awk '
190 1.101 lukem /^server[ \t]*127.127/ {next}
191 1.115 bad /^(server|peer)/ {print $2}
192 1.101 lukem ' </etc/ntp.conf`
193 1.89 cjs fi
194 1.89 cjs if [ -n "$ntpdate_hosts" ]; then
195 1.89 cjs echo 'Setting date via ntp.'
196 1.102 lukem ntpdate -b -s $ntpdate_hosts
197 1.67 mycroft fi
198 1.63 mrg fi
199 1.63 mrg
200 1.84 veego # now start the rpc servers, for YP server/client.
201 1.63 mrg echo -n 'starting rpc daemons:'
202 1.63 mrg
203 1.63 mrg # note that portmap is generally required for all other rpc services.
204 1.89 cjs if checkyesno portmap; then
205 1.109 jwise echo -n ' portmap'; portmap $portmap_flags
206 1.63 mrg fi
207 1.63 mrg
208 1.89 cjs if checkyesno ypserv; then
209 1.63 mrg echo -n ' ypserv'; ypserv $ypserv_flags
210 1.63 mrg fi
211 1.63 mrg
212 1.89 cjs if checkyesno ypbind; then
213 1.63 mrg echo -n ' ypbind'; ypbind $ypbind_flags
214 1.63 mrg fi
215 1.63 mrg
216 1.89 cjs if checkyesno yppasswdd; then
217 1.63 mrg echo -n ' rpc.yppasswdd'; rpc.yppasswdd $yppasswdd_flags
218 1.63 mrg fi
219 1.63 mrg
220 1.89 cjs if checkyesno bootparamd; then
221 1.89 cjs if [ -r /etc/bootparams ]; then
222 1.89 cjs echo -n ' rpc.bootparamd'; rpc.bootparamd $bootparamd_flags
223 1.89 cjs else
224 1.89 cjs echo
225 1.89 cjs logger -s "WARNING: /etc/bootparams not found. " \
226 1.89 cjs "bootparamd not started."
227 1.67 mycroft fi
228 1.63 mrg fi
229 1.63 mrg
230 1.84 veego echo '.'
231 1.84 veego
232 1.84 veego # load kernel modules specified in /etc/lkm.conf
233 1.89 cjs if checkyesno lkm; then
234 1.89 cjs if [ -r /etc/rc.lkm ]; then
235 1.89 cjs lkmstage=BEFOREMOUNT
236 1.89 cjs . /etc/rc.lkm
237 1.89 cjs else
238 1.89 cjs logger -s "WARNING: /etc/rc.lkm not found; LKMs not loaded."
239 1.89 cjs fi
240 1.84 veego fi
241 1.84 veego
242 1.84 veego mount -a
243 1.84 veego
244 1.84 veego # now start the rpc servers, for NFS server/client.
245 1.90 veego echo -n 'starting nfs daemons:'
246 1.84 veego
247 1.67 mycroft nfs_locking=NO
248 1.67 mycroft
249 1.89 cjs if checkyesno nfs_server; then
250 1.89 cjs if [ -r /etc/exports ]; then
251 1.89 cjs rm -f /var/db/mountdtab
252 1.89 cjs echo -n > /var/db/mountdtab
253 1.89 cjs echo -n ' mountd'; mountd $mountd_flags
254 1.89 cjs echo -n ' nfsd'; nfsd $nfsd_flags
255 1.100 lukem nfs_locking=YES
256 1.89 cjs else
257 1.89 cjs echo
258 1.89 cjs logger -s "WARNING: /etc/exports not readable; " \
259 1.89 cjs "NFS server not started."
260 1.69 mycroft fi
261 1.1 cgd fi
262 1.63 mrg
263 1.89 cjs if checkyesno nfs_client; then
264 1.63 mrg echo -n ' nfsiod'; nfsiod $nfsiod_flags
265 1.100 lukem nfs_locking=YES
266 1.66 scottr fi
267 1.66 scottr
268 1.100 lukem if checkyesno nfs_locking; then
269 1.89 cjs if checkyesno statd; then
270 1.71 mycroft echo -n ' rpc.statd'; rpc.statd $statd_flags
271 1.66 scottr fi
272 1.89 cjs if checkyesno lockd; then
273 1.71 mycroft echo -n ' rpc.lockd'; rpc.lockd $lockd_flags
274 1.66 scottr fi
275 1.63 mrg fi
276 1.63 mrg
277 1.89 cjs if checkyesno amd; then
278 1.89 cjs if [ -d "$amd_dir" ]; then
279 1.89 cjs if [ -r "$amd_master" ]; then
280 1.89 cjs echo -n ' amd'
281 1.104 tron amd $amd_flags -p -a $amd_dir \
282 1.104 tron `sed s/#.*$// <$amd_master` >/var/run/amd.pid
283 1.89 cjs else
284 1.89 cjs echo
285 1.89 cjs logger -s "WARNING: \$amd_master ($amd_master)not " \
286 1.89 cjs "readable; amd not started."
287 1.89 cjs fi
288 1.89 cjs else
289 1.89 cjs echo
290 1.89 cjs logger -s "WARNING: \$amd_dir ($amd_dir) not a directory; " \
291 1.89 cjs "amd not started."
292 1.67 mycroft fi
293 1.63 mrg fi
294 1.63 mrg
295 1.1 cgd echo '.'
296 1.83 drochner
297 1.63 mrg if [ -f /sbin/ldconfig ]; then
298 1.63 mrg echo 'creating runtime link editor directory cache.'
299 1.88 thorpej ldconfig
300 1.63 mrg fi
301 1.83 drochner
302 1.83 drochner # load kernel modules specified in /etc/lkm.conf
303 1.89 cjs if checkyesno lkm && [ -f /etc/rc.lkm ]; then
304 1.83 drochner lkmstage=AFTERMOUNT
305 1.83 drochner . /etc/rc.lkm
306 1.1 cgd fi
307 1.1 cgd
308 1.112 mrg # if $securelevel is set, change it here, else if it is 0, change
309 1.112 mrg # it to 1 here, before we start login services.
310 1.113 mrg if [ -n "$securelevel" ]; then
311 1.112 mrg echo -n 'setting securelevel: '
312 1.112 mrg sysctl -w kern.securelevel=$securelevel
313 1.112 mrg else
314 1.116 frueauf securelevel=`sysctl -n kern.securelevel`
315 1.112 mrg if [ x"$securelevel" = x0 ]; then
316 1.112 mrg echo -n 'setting securelevel: '
317 1.112 mrg sysctl -w kern.securelevel=1
318 1.112 mrg fi
319 1.112 mrg fi
320 1.112 mrg
321 1.89 cjs echo -n 'checking quotas:'; quotacheck -a; echo ' done.'
322 1.47 deraadt quotaon -a
323 1.1 cgd
324 1.1 cgd # build ps databases
325 1.2 cgd echo 'building databases...'
326 1.11 cgd kvm_mkdb /netbsd
327 1.1 cgd dev_mkdb
328 1.1 cgd
329 1.1 cgd chmod 666 /dev/tty[pqrs]*
330 1.1 cgd
331 1.1 cgd # check the password temp/lock file
332 1.1 cgd if [ -f /etc/ptmp ]
333 1.1 cgd then
334 1.1 cgd logger -s -p auth.err \
335 1.1 cgd 'password file may be incorrect -- /etc/ptmp exists'
336 1.1 cgd fi
337 1.1 cgd
338 1.112 mrg # XXX replace me with a script that works!
339 1.85 perry virecovery=`echo /var/tmp/vi.recover/recover.*`
340 1.32 mycroft if [ "$virecovery" != "/var/tmp/vi.recover/recover.*" ]; then
341 1.32 mycroft echo preserving editor files
342 1.32 mycroft for i in $virecovery; do
343 1.32 mycroft sendmail -t < $i
344 1.32 mycroft done
345 1.32 mycroft fi
346 1.1 cgd
347 1.1 cgd echo clearing /tmp
348 1.1 cgd
349 1.65 mikel # Prune quickly with one rm, then use find to clean up /tmp/[lq]* (this
350 1.65 mikel # is not needed with mfs /tmp, but doesn't hurt anything).
351 1.1 cgd (cd /tmp && rm -rf [a-km-pr-zA-Z]* &&
352 1.46 deraadt find . ! -name . ! -name lost+found ! -name quota.user \
353 1.46 deraadt ! -name quota.group -exec rm -rf -- {} \; -type d -prune)
354 1.1 cgd
355 1.74 perry # Update kernel info in /etc/motd
356 1.74 perry # Must be done *before* interactive logins are possible to prevent
357 1.74 perry # possible race conditions.
358 1.89 cjs if checkyesno update_motd; then
359 1.74 perry echo 'updating motd.'
360 1.74 perry if [ ! -f /etc/motd ]; then
361 1.74 perry install -c -o root -g wheel -m 664 /dev/null /etc/motd
362 1.74 perry fi
363 1.74 perry T=/tmp/_motd
364 1.74 perry rm -f $T
365 1.74 perry sysctl -n kern.version | sed 1q > $T
366 1.74 perry echo "" >> $T
367 1.74 perry sed '1,/^$/d' < /etc/motd >> $T
368 1.74 perry cmp -s $T /etc/motd || cp $T /etc/motd
369 1.74 perry rm -f $T
370 1.74 perry fi
371 1.74 perry
372 1.34 cgd if [ -f /var/account/acct ]; then
373 1.34 cgd echo 'turning on accounting'; accton /var/account/acct
374 1.34 cgd fi
375 1.1 cgd
376 1.1 cgd echo -n standard daemons:
377 1.89 cjs if checkyesno update; then
378 1.70 mycroft echo -n ' update'; update $update_flags
379 1.70 mycroft fi
380 1.110 jwise if checkyesno cron; then
381 1.110 jwise echo -n ' cron'; cron
382 1.110 jwise fi
383 1.1 cgd echo '.'
384 1.1 cgd
385 1.63 mrg # now start all the other daemons
386 1.1 cgd echo -n starting network daemons:
387 1.1 cgd
388 1.89 cjs if checkyesno gated && checkyesno routed; then
389 1.89 cjs echo
390 1.89 cjs logger -s "WARNING: gated and routed both requested to be run: " \
391 1.89 cjs "running only gated."
392 1.89 cjs routed=NO
393 1.89 cjs fi
394 1.89 cjs
395 1.89 cjs if checkyesno gated; then
396 1.89 cjs if [ -r /etc/gated.conf ]; then
397 1.89 cjs echo -n ' gated'; gated $gated_flags
398 1.89 cjs else
399 1.89 cjs logger -s "WARNING: no /etc/gated.conf; gated not started."
400 1.67 mycroft fi
401 1.89 cjs fi
402 1.89 cjs
403 1.89 cjs if checkyesno routed; then
404 1.48 mycroft echo -n ' routed'; routed $routed_flags
405 1.1 cgd fi
406 1.1 cgd
407 1.89 cjs if checkyesno mrouted; then
408 1.55 thorpej echo -n ' mrouted'; mrouted $mrouted_flags
409 1.55 thorpej fi
410 1.55 thorpej
411 1.89 cjs if checkyesno timed; then
412 1.67 mycroft echo -n ' timed'; timed $timed_flags
413 1.63 mrg fi
414 1.63 mrg
415 1.89 cjs if checkyesno xntpd; then
416 1.67 mycroft echo -n ' xntpd'; xntpd $xntpd_flags
417 1.61 mrg fi
418 1.61 mrg
419 1.89 cjs if checkyesno dhcpd; then
420 1.89 cjs if [ -r /etc/dhcpd.conf ]; then
421 1.89 cjs echo -n ' dhcpd'; dhcpd $dhcpd_flags
422 1.89 cjs else
423 1.89 cjs echo
424 1.89 cjs logger -s "WARNING: /etc/dhcpd.conf not readable; " \
425 1.89 cjs "dhcpd not started."
426 1.67 mycroft fi
427 1.122 sommerfe elif checkyesno dhcrelay; then
428 1.122 sommerfe echo -n ' dhcrelay'; dhcrelay $dhcrelay_flags
429 1.29 mycroft fi
430 1.29 mycroft
431 1.89 cjs if checkyesno rwhod; then
432 1.48 mycroft echo -n ' rwhod'; rwhod
433 1.1 cgd fi
434 1.1 cgd
435 1.89 cjs if checkyesno lpd; then
436 1.89 cjs echo -n ' lpd'; lpd $lpd_flags
437 1.60 tls fi
438 1.60 tls
439 1.63 mrg # We call sendmail with a full path so that SIGHUP works.
440 1.89 cjs if checkyesno sendmail; then
441 1.89 cjs if [ -r /etc/sendmail.cf ]; then
442 1.89 cjs echo -n ' sendmail'; /usr/sbin/sendmail $sendmail_flags
443 1.89 cjs else
444 1.89 cjs echo
445 1.89 cjs logger -s "WARNING: /etc/sendmail.cf not readable; " \
446 1.89 cjs "sendmail not started."
447 1.67 mycroft fi
448 1.60 tls fi
449 1.60 tls
450 1.96 jonathan # Start xfs before boot daemons, so its ready before client xterminals.
451 1.96 jonathan if checkyesno xfs; then
452 1.96 jonathan echo -n ' xfs'; xfs $xfs_flags &
453 1.98 perry sleep 2
454 1.96 jonathan fi
455 1.96 jonathan
456 1.89 cjs if checkyesno rarpd; then
457 1.89 cjs if [ -r /etc/ethers ]; then
458 1.89 cjs echo -n ' rarpd'; rarpd $rarpd_flags
459 1.89 cjs else
460 1.89 cjs echo
461 1.89 cjs logger -s "WARNING: /etc/ethers not readable; " \
462 1.89 cjs "rarpd not started."
463 1.67 mycroft fi
464 1.60 tls fi
465 1.60 tls
466 1.89 cjs if checkyesno rbootd; then
467 1.89 cjs if [ -r /etc/rbootd.conf ]; then
468 1.89 cjs echo -n ' rbootd'; rbootd $rbootd_flags
469 1.89 cjs else
470 1.89 cjs echo
471 1.89 cjs logger -s "WARNING: /etc/rbootd.conf not readable; " \
472 1.111 mrg "rbootd not started."
473 1.67 mycroft fi
474 1.72 cjs fi
475 1.72 cjs
476 1.89 cjs if checkyesno mopd; then
477 1.72 cjs echo -n ' mopd'; mopd $mopd_flags
478 1.86 perry fi
479 1.86 perry
480 1.89 cjs if checkyesno apmd; then
481 1.86 perry echo -n ' apmd'; apmd $apmd_flags
482 1.103 mrg fi
483 1.103 mrg
484 1.103 mrg if checkyesno screenblank; then
485 1.103 mrg echo -n ' screenblank'; screenblank $screenblank_flags
486 1.52 thorpej fi
487 1.52 thorpej
488 1.89 cjs if checkyesno inetd; then
489 1.89 cjs if [ -r /etc/inetd.conf ]; then
490 1.89 cjs echo -n ' inetd'; inetd $inetd_flags
491 1.89 cjs else
492 1.89 cjs echo
493 1.89 cjs logger -s "WARNING: /etc/inetd.conf not readable; " \
494 1.89 cjs "inetd not started."
495 1.67 mycroft fi
496 1.105 augustss fi
497 1.105 augustss
498 1.105 augustss if checkyesno usbd; then
499 1.105 augustss echo -n ' usbd'; usbd $usbd_flags
500 1.96 jonathan fi
501 1.96 jonathan
502 1.1 cgd echo '.'
503 1.73 perry
504 1.73 perry # Kerberos runs ONLY on the Kerberos server machine
505 1.89 cjs if checkyesno kerberos; then
506 1.73 perry echo -n 'starting kerberos daemons:'
507 1.73 perry echo -n ' kerberos'; kerberos >> /var/log/kerberos.log &
508 1.73 perry echo -n ' kadmind'; kadmind -n >> /var/log/kadmind.log &
509 1.73 perry echo '.'
510 1.117 drochner fi
511 1.117 drochner
512 1.117 drochner if checkyesno wscons && [ -f /etc/rc.wscons ]; then
513 1.117 drochner echo 'configuring wscons'
514 1.118 drochner /bin/sh /etc/rc.wscons $wscons_flags
515 1.123 drochner fi
516 1.123 drochner
517 1.123 drochner # xdm after wscons - need a virtual screen for X
518 1.123 drochner if checkyesno xdm; then
519 1.123 drochner echo 'starting xdm'
520 1.123 drochner xdm $xdm_flags
521 1.73 perry fi
522 1.1 cgd
523 1.25 mycroft . /etc/rc.local
524 1.1 cgd
525 1.1 cgd date
526 1.1 cgd exit 0
527