Deleted Added
full compact
rc (26449) rc (26450)
1#!/bin/sh
1#!/bin/sh
2# $Id: rc,v 1.125 1997/06/01 23:33:00 ache Exp $
2# $Id: rc,v 1.127 1997/06/04 19:20:04 ache Exp $
3# From: @(#)rc 5.27 (Berkeley) 6/5/91
4
5# System startup script run by init on autoboot
6# or after single-user.
7# Output and error are redirected to console by init,
8# and the console is the controlling terminal.
9
10# Note that almost all the user-configurable behavior is no longer in

--- 79 unchanged lines hidden (view full) ---

90# If old file exists, whine until they fix it.
91if [ -f /etc/sysconfig ]; then
92 echo "Warning: /etc/sysconfig has been replaced by /etc/rc.conf."
93 echo "You should switch to /etc/rc.conf ASAP to eliminate this warning."
94fi
95
96adjkerntz -i
97
3# From: @(#)rc 5.27 (Berkeley) 6/5/91
4
5# System startup script run by init on autoboot
6# or after single-user.
7# Output and error are redirected to console by init,
8# and the console is the controlling terminal.
9
10# Note that almost all the user-configurable behavior is no longer in

--- 79 unchanged lines hidden (view full) ---

90# If old file exists, whine until they fix it.
91if [ -f /etc/sysconfig ]; then
92 echo "Warning: /etc/sysconfig has been replaced by /etc/rc.conf."
93 echo "You should switch to /etc/rc.conf ASAP to eliminate this warning."
94fi
95
96adjkerntz -i
97
98rm -f /var/run/*
99
98# Keep a copy of the boot messages around
99dmesg > /var/run/dmesg.boot
100
100# Keep a copy of the boot messages around
101dmesg > /var/run/dmesg.boot
102
101
102# Add additional swapfile, if configured.
103if [ "x$swapfile" != "xNO" -a -w "$swapfile" -a -b /dev/vn0b ]; then
104 echo "Adding $swapfile as additional swap."
105 vnconfig /dev/vn0b $swapfile && swapon /dev/vn0b
106fi
107
108# configure serial devices
109if [ -f /etc/rc.serial ]; then

--- 15 unchanged lines hidden (view full) ---

125
126# Whack the pty perms back into shape.
127chmod 666 /dev/tty[pqrsPQRS]*
128
129# clean up left-over files
130rm -f /etc/nologin
131rm -f /var/spool/lock/*
132rm -rf /var/spool/uucp/.Temp/*
103# Add additional swapfile, if configured.
104if [ "x$swapfile" != "xNO" -a -w "$swapfile" -a -b /dev/vn0b ]; then
105 echo "Adding $swapfile as additional swap."
106 vnconfig /dev/vn0b $swapfile && swapon /dev/vn0b
107fi
108
109# configure serial devices
110if [ -f /etc/rc.serial ]; then

--- 15 unchanged lines hidden (view full) ---

126
127# Whack the pty perms back into shape.
128chmod 666 /dev/tty[pqrsPQRS]*
129
130# clean up left-over files
131rm -f /etc/nologin
132rm -f /var/spool/lock/*
133rm -rf /var/spool/uucp/.Temp/*
133rm -f /var/run/*.pid
134(cd /var/run && { cp /dev/null utmp; chmod 644 utmp; })
135
136# enable dumpdev so that savecore can see it
137if [ "X${dumpdev}" != X"NO" -a -e ${dumpdev} ]; then
138 dumpon ${dumpdev}
139fi
140
141# /var/crash should be a directory or a symbolic link

--- 154 unchanged lines hidden ---
134(cd /var/run && { cp /dev/null utmp; chmod 644 utmp; })
135
136# enable dumpdev so that savecore can see it
137if [ "X${dumpdev}" != X"NO" -a -e ${dumpdev} ]; then
138 dumpon ${dumpdev}
139fi
140
141# /var/crash should be a directory or a symbolic link

--- 154 unchanged lines hidden ---