cvs commit: src/etc rc.subr

Colin Percival colin.percival at wadham.ox.ac.uk
Sun Jul 4 00:41:35 PDT 2004


At 00:21 04/07/2004, Colin Percival wrote:
>  Wrap rc.subr inside
>  
>  if [ -z "${_rc_subr_loaded}" ]; then
>  _rc_subr_loaded="YES"
>  ...
>  fi

Just a note here: Theoretically, it's possible to return from
". foo", so it should be possible to accomplish this with

if ! [ -z "${_rc_subr_loaded}" ]; then return; fi
_rc_subr_loaded="YES"

(or variants thereof), but for some reason this never works
during booting.  (It works fine when I run a standalone shell
script.)

If anyone can work out how to do this properly, please go
ahead and fix it. :-)

Colin Percival




More information about the cvs-all mailing list