commit 0e7badd402459228d38ddfb0e06224b5a3d9fdf8 Author: Aaron LI <a...@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