rc.subr: Add _rc_subr_loaded to avoid sourcing it again

Operating Systems / DragonFlyBSD - Aaron LI [aaronly.me] - 30 March 2018 01:03 EDT

- Once /etc/rc.subr been sourced, $_rc_subr_loaded="YES", then /etc/rc.subr takes care of avoiding sourcing it again. (obtained from FreeBSD)

- Remove the unnecessary "$_rc_subr_loaded" prefix from several rc scripts, which also make the "$_rc_subr_loaded . /etc/rc.subr" command fail.

0e7badd402 rc.subr: Add _rc_subr_loaded to avoid sourcing it again
etc/rc.d/btconfig | 4 ++--
etc/rc.d/bthcid | 4 ++--
etc/rc.d/cryptdisks | 2 +-
etc/rc.d/lvm | 2 +-
etc/rc.d/sdpd | 4 ++--
etc/rc.subr | 9 +++++++--
6 files changed, 15 insertions(+), 10 deletions(-)

Upstream: gitweb.dragonflybsd.org


  • Share