Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Jul 2000 17:17:19 -0400
From:      bjf <bjf@samurai.com>
To:        freebsd-stable@freebsd.org
Subject:   /etc/defaults/rc.conf
Message-ID:  <20000705171719.A90791@samurai.com>

next in thread | raw e-mail | index | archive | help
Howdy,

I cvsup'ed to RELENG_4 last night on a couple-month-old 3.4-STABLE machine,
built and installed everything as per instructions, including mergemaster'ing.
When I was done, /etc/defaults/rc.conf doesn't read in /etc/rc.conf
settings any more, which is rather a huge pain in the ass (especially not
setting defaultrouter).

The difference in parsing /etc/rc.conf seems to be this:

===== end of /etc/defaults/rc.conf from 4.0-RELEASE:
[...]
##############################################################
### Allow local configuration override at the very end here ##
##############################################################
#
#

for i in ${rc_conf_files}; do
        if [ -f $i ]; then
                . $i
        fi
done
=====

===== end of /etc/defaults/rc.conf from 4.0-STABLE
##############################################################
### Define source_rc_confs, the mechanism used by /etc/rc.* ##
### scripts to source rc_conf_files overrides safely.       ##
##############################################################

if [ -z "${source_rc_confs_defined}" ]; then
        source_rc_confs_defined=yes
        source_rc_confs ( ) {
                local i sourced_files
                for i in ${rc_conf_files}; do
                        case ${sourced_files} in
                        *:$i:*)
                                ;;
                        *)
                                sourced_files="${sourced_files}:$i:"
                                if [ -r $i ]; then
                                        . $i
                                fi
                                ;;
                        esac
                done
        }
fi
=====

The latter doesn't seem to actually work for some reason when called from
/etc/rc.

Any ideas if I've missed something or if this is a legitimate bug?

Thanks,

Bryan

-- 
Bryan Fullerton                http://bryanfullerton.com/
Core Competency
Samurai Consulting
Can you feel the Ohmu call?


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000705171719.A90791>