Fix sendmail_flags, long ago it was imported from /etc/netstart
[unix-history] / etc / rc
diff --git a/etc/rc b/etc/rc
index 170efef..4e2cee7 100644 (file)
--- a/etc/rc
+++ b/etc/rc
@@ -1,5 +1,5 @@
 #!/bin/sh
 #!/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
 #      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)
 
 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
 # 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 '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:
 
 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.
 # $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
 
 
 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
 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.
 
 # $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
 
        echo -n ' sendmail';            sendmail ${sendmail_flags} 
 fi