mike at jellydonut.org
Wed Jul 11 14:07:59 UTC 2007
Morgan Reed wrote:
> I'm working on a small footprint semi-embedded system, I need a means
> to load and save parts of /var (which is a memory-backed filesystem)
> at boot and shutdown.
> Given that rc.local is now deprecated, what is the "correct" way to
> perform extra startup/shutdown processes, should I write an rc.d
> script for it and insert it into the rcorder appropriately, or is
> there another mechanism?
> Thanks in advance
I'm also doing embedded system work on a PC Engines WRAP platform with a
CF-based disk, and I'm using custom rc.d scripts for this purpose.
Mainly little scripts to enable specific LEDs at the end of the boot
process and to copy misc. read-only files from the CF into a memory
filesystem during boot. Works rather well, and the documentation in
/usr/share/doc/en/articles/rc-scripting was a big help in this regard.
More information about the freebsd-stable