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:
parent
5bbcf5a4e0
commit
1031586646
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user