Remove use of kern.conf_dir sysctl. conf_dir is left as a local

variable and propogates back to /etc/rc where it will be used to
    locate the rc.local file.  The local variable will also be used by
    /etc/rc.conf.  Note that /etc/rc.conf reverts to its prior operation
    of accessing /etc/rc.conf.local if run standalone.
This commit is contained in:
Matthew Dillon 1999-01-26 07:36:20 +00:00
parent 5bbcf5a4e0
commit 1031586646
1 changed files with 2 additions and 2 deletions

View File

@ -55,11 +55,11 @@ bootp_ipa=`ifconfig $bootp_ifc | fgrep inet | head -1 | awk '{ print $2; }'`
echo "Interface $bootp_ifc IP-Address $bootp_ipa"
# retarget the configuration directory, where rc.conf.local and rc.local
# are found. We set the directory to /conf/$bootp_ipa.
# are found. We set the directory to /conf/$bootp_ipa. 'conf_dir' will
# be used by rc.conf and later in /etc/rc.
#
conf_dir=/conf/$bootp_ipa
sysctl -w kern.conf_dir=$conf_dir
sysctl -w kern.bootfile=$conf_dir/kernel
if [ ! -f $conf_dir/rc.conf.local ]; then