"firstboot" keyword?

Matthew Seaman matthew at FreeBSD.org
Sun Feb 3 09:46:46 UTC 2013


On 03/02/2013 04:33, Tim Kientzle wrote:
> I'm experimenting with some rc.d scripts that would
> ideally only get run once the first time a system
> is booted.
> 
> Is there any interest in trying to generalize this?
> 
> I have in mind something like a "firstboot" keyword
> on an rc.d script:  If it's there, the script would
> only be run the first time the system is booted.

How about a slightly more general solution: an rc.d script that will run
once at the next boot and then deactivate itself?

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 268 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-rc/attachments/20130203/a0dc228f/attachment.sig>


More information about the freebsd-rc mailing list