X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/e5e4701260305a822c0d21cac7e384da6d03c59e..13c79c0c521059f6ca142c23b189554070c1bf92:/etc/rc diff --git a/etc/rc b/etc/rc index 170efefceb..4e2cee775c 100644 --- a/etc/rc +++ b/etc/rc @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: rc,v 1.4 1993/11/07 01:19:06 wollman Exp $ +# $Id: rc,v 1.9 1993/12/17 04:20:30 ache Exp $ # From: @(#)rc 5.27 (Berkeley) 6/5/91 # System startup script run by init on autoboot @@ -63,6 +63,12 @@ umount -a >/dev/null 2>&1 mount -a -t nonfs rm -f /fastboot # XXX (root now writeable) +# If the machine runs wall CMOS clock (compatible with MSDOS), +# activate following line by creating empty file /etc/wall_cmos_clock +# If this file not exist, following line does nothing (assumed +# the machine runs UTC CMOS clock). See adjkerntz(8) for details. +adjkerntz -i + # set hostname, turn on network echo 'starting network' . /etc/netstart @@ -130,12 +136,16 @@ echo clearing /tmp # echo 'turning on accounting'; accton /var/account/acct echo -n standard daemons: -echo -n ' update'; update echo -n ' crond'; /usr/libexec/crond echo '.' echo -n starting network daemons: +# Portmapper should always be run, to provide RPC services for inetd. +if [ -x /usr/sbin/portmap ]; then + echo -n ' portmap'; portmap +fi + # $gated and $routedflags are imported from /etc/netstart. # If $gated == YES, gated is used; otherwise routed. # If $routedflags == NO, routed isn't run. @@ -157,11 +167,6 @@ fi echo -n ' printer'; lpd -# Portmapper should always be run, to provide RPC services for inetd. -if [ -x /usr/sbin/portmap ]; then - echo -n ' portmap'; portmap -fi - if [ X${nfs_server} = X"YES" -a -r /etc/exports ]; then echo -n ' mountd'; mountd echo -n ' nfsd'; nfsd -u 0,0,4 -t 0,0 @@ -170,7 +175,7 @@ fi # $sendmail_flags is imported from /etc/netstart; # if $sendmail_flags is something other than NO, sendmail is run. -if [ X${sendmail_flags} = X"NO" -a -r /etc/sendmail.cf ]; then +if [ X"${sendmail_flags}" != X"NO" -a -r /etc/sendmail.cf ]; then echo -n ' sendmail'; sendmail ${sendmail_flags} fi