:That was the sucking in of the /etc files.  I'm referring to the
:following in rc.diskless1 where you check for host-specific files,
:followed by network, then a default config:
:
:  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
:  fi
:
:I've found that one can reduce a lot of common file duplication by
:reversing that logic, going after "default" first, then
:"network-specific", finally followed by "host-specific" files:
:
:  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
:...

    Oops.  That was broken allright.  It's definitely correct to
    copy the files in reverse order so the network files override
    the defaults, and the per-host files override the network files.

                                                -Matt

:-Brian
:-- 
:Brian Dean

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to