aboutsummaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc26
1 files changed, 21 insertions, 5 deletions
diff --git a/etc/rc b/etc/rc
index ee1b96427d73..84b3e41fc595 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,5 +1,5 @@
#!/bin/sh
-# $Id: rc,v 1.19.2.2 1994/04/18 04:14:19 rgrimes Exp $
+# $Id: rc,v 1.27 1994/06/06 17:45:37 phk Exp $
# From: @(#)rc 5.27 (Berkeley) 6/5/91
# System startup script run by init on autoboot
@@ -59,6 +59,12 @@ trap "echo 'Reboot interrupted'; exit 1" 3
swapon -a
+# Check for diskless boot, and remount the root RW.
+a=`mount`
+if [ 0 != `expr "$a" : '^[^/]*:/.* on /'` ] ; then
+ mount -u -o rw /
+fi
+
umount -a >/dev/null 2>&1
mount -a -t nonfs
rm -f /fastboot # XXX (root now writeable)
@@ -69,15 +75,21 @@ rm -f /fastboot # XXX (root now writeable)
# the machine runs UTC CMOS clock). See adjkerntz(8) for details.
adjkerntz -i
+# configure serial devices
+if [ -f /etc/rc.serial ]
+then
+ sh /etc/rc.serial
+fi
+
# set hostname, turn on network
echo 'starting network'
. /etc/netstart
# clean up left-over files
rm -f /etc/nologin
-rm -f /var/spool/uucp/LCK.*
-rm -f /var/spool/uucp/STST/*
-# don't add .[a-z]* to rm, because of .adjkerntz file
+rm -f /var/spool/lock/*
+rm -f /var/spool/uucp/.Temp/*
+# don't add .[a-z]* to rm, because of .adjkerntz file name
(cd /var/run && { rm -rf -- *; cp /dev/null utmp; chmod 644 utmp; })
echo -n 'starting system logger'
@@ -156,7 +168,7 @@ fi
# If $routedflags == NO, routed isn't run.
if [ X${gated} = X"YES" -a -r /etc/gated.conf ]; then
echo -n ' gated'; gated $gatedflags
-elif [ X${routedflags} != X"NO" ]; then
+elif [ X"${routedflags}" != X"NO" ]; then
echo -n ' routed'; routed $routedflags
fi
@@ -207,6 +219,10 @@ echo '.'
mount -a -t nfs >/dev/null 2>&1 & # XXX shouldn't need background
+# if [ -x /usr/libexec/xtend ]; then
+# echo -n ' xtend'; /usr/libexec/xtend
+# fi
+
# Make shared lib searching a little faster. Leave /usr/lib first if you
# add your own entries or you may come to grief.
if [ -x /sbin/ldconfig ]; then