On 2 Jun, Sheldon Hearn wrote:
>> after the update of my rc scripts (~a month ago if I remember correctly)
>> to use source_rc_conf it didn't boots as expected. E.g. it didn't starts
>> anything from rc.i386. I had to source rc.conf* manually in rc.i386.
>
> Could you run mergemaster again to make sure you didn't botch it last
> time?
I did this a couple of times. I even did a "mergemaster -s".
> Currently, /etc/rc pulls in rc.conf variables with source_rc_confs just
> after checking for a diskless environment, i.e. before doing anything
> else. The variables sourced should exist in the environment of the
> sourced shell scripts as well.
At the moment my /etc/rc contains:
---snip---
# If there is a global system configuration file, suck it in.
#
if [ -r /etc/defaults/rc.conf ]; then
. /etc/defaults/rc.conf
. /etc/rc.conf
. /etc/rc.conf.local
#source_rc_confs
elif [ -r /etc/rc.conf ]; then
. /etc/rc.conf
fi
---snip---
and rc.i386:
---snip--
#!/bin/sh -
#
# $FreeBSD: src/etc/etc.i386/rc.i386,v 1.51 2000/01/24 15:21:43 asmodai Exp $
# Do i386 specific processing
#
. /etc/defaults/rc.conf
. /etc/rc.conf
. /etc/rc.conf.local
---snip---
and defaults/rc.conf:
---snip---
##############################################################
### 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
---snip---
Bye,
Alexander.
--
Weird enough for government work.
http://www.Leidinger.net Alexander+Home @ Leidinger.net
GPG fingerprint = 7423 F3E6 3A7E B334 A9CC B10A 1F5F 130A A638 6E7E
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message