diff options
| author | Brian S. Dean <bsd@FreeBSD.org> | 2001-04-03 00:24:01 +0000 |
|---|---|---|
| committer | Brian S. Dean <bsd@FreeBSD.org> | 2001-04-03 00:24:01 +0000 |
| commit | bb09faafdba2c7be9120be86db53176f898ded08 (patch) | |
| tree | 6a7aa79dbc546ee7ade3ae24d956e4c847584f3c /etc/rc.initdiskless | |
| parent | 606e1d6816ea2dfcf75a1070c69fa28429a9a799 (diff) | |
Notes
Diffstat (limited to 'etc/rc.initdiskless')
| -rw-r--r-- | etc/rc.initdiskless | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/etc/rc.initdiskless b/etc/rc.initdiskless index 80ca2ce3ed9e..54ee15a10b44 100644 --- a/etc/rc.initdiskless +++ b/etc/rc.initdiskless @@ -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 |
