From owner-freebsd-stable Wed Jul 5 14:17:41 2000 Delivered-To: freebsd-stable@freebsd.org Received: from smtp13.bellglobal.com (smtp13.bellglobal.com [204.101.251.52]) by hub.freebsd.org (Postfix) with ESMTP id 077C437BF0F for ; Wed, 5 Jul 2000 14:17:31 -0700 (PDT) (envelope-from bjf@gw.apt.samurai.com) Received: from gw.apt.samurai.com (HSE-Toronto-ppp132676.sympatico.ca [64.228.75.239]) by smtp13.bellglobal.com (8.8.5/8.8.5) with ESMTP id RAA02919 for ; Wed, 5 Jul 2000 17:21:35 -0400 (EDT) Received: by gw.apt.samurai.com (Postfix, from userid 1001) id F3F9E73; Wed, 5 Jul 2000 17:17:19 -0400 (EDT) Date: Wed, 5 Jul 2000 17:17:19 -0400 From: bjf To: freebsd-stable@freebsd.org Subject: /etc/defaults/rc.conf Message-ID: <20000705171719.A90791@samurai.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.2i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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