diff options
-rw-r--r-- | etc/rc.d/initdiskless | 17 | ||||
-rw-r--r-- | etc/rc.diskless1 | 17 | ||||
-rw-r--r-- | etc/rc.initdiskless | 17 |
3 files changed, 36 insertions, 15 deletions
diff --git a/etc/rc.d/initdiskless b/etc/rc.d/initdiskless index 80ca2ce..54ee15a 100644 --- a/etc/rc.d/initdiskless +++ b/etc/rc.d/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 diff --git a/etc/rc.diskless1 b/etc/rc.diskless1 index 80ca2ce..54ee15a 100644 --- a/etc/rc.diskless1 +++ b/etc/rc.diskless1 @@ -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 diff --git a/etc/rc.initdiskless b/etc/rc.initdiskless index 80ca2ce..54ee15a 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 |