From 8942af695def5210ac4b65147518aee5d7c57829 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Tue, 26 Jan 1999 05:14:36 +0000 Subject: [PATCH] Move reading of rc.conf sooner as requested by Greg. I'm a tad nervous about this becase that makes it get run *before* the filesystems are mounted. If people have added stuff to their rc.conf or rc.conf.local that uses stuff outside of /bin and /sbin, this will break. --- etc/rc | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/etc/rc b/etc/rc index 88ead828270a..976824f99f36 100644 --- a/etc/rc +++ b/etc/rc @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: rc,v 1.171 1999/01/25 18:07:25 dillon Exp $ +# $Id: rc,v 1.172 1999/01/26 04:59:43 peter Exp $ # From: @(#)rc 5.27 (Berkeley) 6/5/91 # System startup script run by init on autoboot @@ -33,12 +33,18 @@ if [ -f /etc/rc.diskless ]; then fi fi +# If there is a global system configuration file, suck it in. +# +if [ -f /etc/rc.conf ]; then + . /etc/rc.conf +fi + # Configure ccd devices. if [ "X$skip_diskconf" != "XYES" -a -f /etc/ccd.conf ]; then ccdconfig -C fi -if [ -n "$vinum_slices" ]; then +if [ "X$skip_diskconf" != "XYES" -a -n "$vinum_slices" ]; then vinum read $vinum_slices fi @@ -104,13 +110,6 @@ if [ "X$skip_diskconf" != "XYES" ]; then fi fi -# If there is a global system configuration file, suck it in. -# - -if [ -f /etc/rc.conf ]; then - . /etc/rc.conf -fi - # Run custom disk mounting function here #