Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 04 Jul 2004 00:40:48 -0700
From:      Colin Percival <colin.percival@wadham.ox.ac.uk>
To:        Colin Percival <cperciva@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/etc rc.subr
Message-ID:  <6.1.0.6.1.20040704003419.03c5c200@popserver.sfu.ca>
In-Reply-To: <200407040721.i647LIZL033174@repoman.freebsd.org>
References:  <200407040721.i647LIZL033174@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6.1.0.6.1.20040704003419.03c5c200>