git: rc.subr: Add _rc_subr_loaded to avoid sourcing it again

Aaron LI aly at crater.dragonflybsd.org
Thu Mar 29 18:04:05 PDT 2018


commit 0e7badd402459228d38ddfb0e06224b5a3d9fdf8
Author: Aaron LI <aly at aaronly.me>
Date:   Tue Mar 27 23:52:35 2018 +0800

    rc.subr: Add _rc_subr_loaded to avoid sourcing it again
    
    * 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.

Summary of changes:
 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(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0e7badd402459228d38ddfb0e06224b5a3d9fdf8


-- 
DragonFly BSD source repository


More information about the Commits mailing list