1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-03 09:00:21 +00:00

Change the order in which /etc files are copied into place; copy

default first, then network-specific files, then host-specific files.
I think this was the original intent, as Matt indicated the previous
code appeared to be a bug.
This commit is contained in:
Brian S. Dean 2001-04-03 00:24:01 +00:00
parent 606e1d6816
commit bb09faafdb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=75101
3 changed files with 36 additions and 15 deletions

View File

@ -102,12 +102,19 @@ mount_mfs -s 2048 -T qp120at dummy /conf/etc
cp -Rp /etc/* /conf/etc
chkerr $? "MFS mount on /conf/etc"
# Pick up default, network-specific, and host-specific config, in that
# order
if [ -d /conf/default/etc/ ]; then
cp -Rp /conf/default/etc/* /conf/etc
fi
if [ -d /conf/${bootp_ipbca} ] ; then
cp -Rp /conf/${bootp_ipbca}/etc/* /conf/etc
fi
if [ -d /conf/${bootp_ipa} ] ; then
cp -Rp /conf/${bootp_ipa}/etc/* /conf/etc
elif [ -d /conf/${bootp_ipbca} ] ; then
cp -Rp /conf/${bootp_ipbca}/etc/* /conf/etc
else
cp -Rp /conf/default/etc/* /conf/etc
cp -Rp /conf/${bootp_ipa}/etc/* /conf/etc
fi
# Make the new directory available as /etc

View File

@ -102,12 +102,19 @@ mount_mfs -s 2048 -T qp120at dummy /conf/etc
cp -Rp /etc/* /conf/etc
chkerr $? "MFS mount on /conf/etc"
# Pick up default, network-specific, and host-specific config, in that
# order
if [ -d /conf/default/etc/ ]; then
cp -Rp /conf/default/etc/* /conf/etc
fi
if [ -d /conf/${bootp_ipbca} ] ; then
cp -Rp /conf/${bootp_ipbca}/etc/* /conf/etc
fi
if [ -d /conf/${bootp_ipa} ] ; then
cp -Rp /conf/${bootp_ipa}/etc/* /conf/etc
elif [ -d /conf/${bootp_ipbca} ] ; then
cp -Rp /conf/${bootp_ipbca}/etc/* /conf/etc
else
cp -Rp /conf/default/etc/* /conf/etc
cp -Rp /conf/${bootp_ipa}/etc/* /conf/etc
fi
# Make the new directory available as /etc

View File

@ -102,12 +102,19 @@ mount_mfs -s 2048 -T qp120at dummy /conf/etc
cp -Rp /etc/* /conf/etc
chkerr $? "MFS mount on /conf/etc"
# Pick up default, network-specific, and host-specific config, in that
# order
if [ -d /conf/default/etc/ ]; then
cp -Rp /conf/default/etc/* /conf/etc
fi
if [ -d /conf/${bootp_ipbca} ] ; then
cp -Rp /conf/${bootp_ipbca}/etc/* /conf/etc
fi
if [ -d /conf/${bootp_ipa} ] ; then
cp -Rp /conf/${bootp_ipa}/etc/* /conf/etc
elif [ -d /conf/${bootp_ipbca} ] ; then
cp -Rp /conf/${bootp_ipbca}/etc/* /conf/etc
else
cp -Rp /conf/default/etc/* /conf/etc
cp -Rp /conf/${bootp_ipa}/etc/* /conf/etc
fi
# Make the new directory available as /etc