Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 Feb 2013 09:46:33 +0000
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-rc@freebsd.org
Subject:   Re: "firstboot" keyword?
Message-ID:  <510E31F9.9070709@FreeBSD.org>
In-Reply-To: <4FD83C6A-AD4F-47CE-B011-3B34286D640E@freebsd.org>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
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



[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlEOMf8ACgkQ8Mjk52CukIy74QCeLx0OWHkBLmhCn00Tr0kbhDID
m3kAnj17muzHavWLYaOPuLQ9gsOoYr5s
=4kmp
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?510E31F9.9070709>