git: rc: Bring in a simple mechanism to run rc scripts only once.

Sascha Wildner swildner at crater.dragonflybsd.org
Fri Jul 20 04:39:43 PDT 2018


commit 10d767c30ac919eb09f712333ebde961760476a0
Author: Brad Hoffman <bradleydavidhoffman at gmail.com>
Date:   Wed Jul 18 14:41:03 2018 +0000

    rc: Bring in a simple mechanism to run rc scripts only once.
    
    The basic mechanism is: If /firstboot exists, rc will also run all
    scripts that have the "firstboot" keyword, then delete /firstboot.
    
    This is a simpler version of FreeBSD's work. Specifically, we hardcode
    the firstboot sentinel's name to /firstboot and we also remove it a
    bit more simply because we assume that at the end of /etc/rc, root is
    R/W.
    
    This mechanism is used for example by sysutils/ec2-scripts and is in
    preparation for the upcoming ena(4) driver import.
    
    Based-on: FreeBSD

Summary of changes:
 etc/rc                | 13 +++++++++++--
 etc/rc.d/localdaemons | 20 ++++++++++++++++++--
 share/man/man8/rc.8   | 13 ++++++++++++-
 3 files changed, 41 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/10d767c30ac919eb09f712333ebde961760476a0


-- 
DragonFly BSD source repository


More information about the Commits mailing list