rc.conf runs as part of every normal rc script.I've remembered something about the existence of a firstboot_sentinel which I never fully understood but it is referenced inrc.conf().
In the expanation it mentions early_late_divider which I'm trying to figure out. I want to be able to run something after rc.conf is processed.
rc.conf runs as part of every normal rc script.
Every rc(8) script ends up sourcing /etc/rc.conf.Interesting that you mention this since I just added 'echo "hello" ' into my rc.conf and couldn't understand why hello popped so many times.
It's just a file; /firstboot. Useful if you create images (for VMs for example), the existence of this file can trigger scripts that should be run the first time you boot that image. For example; sysutils/firstboot-freebsd-update to automatically run freebsd-update(8), or expanding the root filesystem with /etc/rc.d/growfs.I've remembered something about the existence of a firstboot_sentinel which I never fully understood but it is referenced inrc.conf().
What I do is auto-login to a shell on the alt-F1 console and have the shell execute things if we are ttyv0 and we just booted according to the uptime command. I think there really should be an autoexec.bat style startup script that just runs things after booting for a dedicated machine. This is way too complicated.I've remembered something about the existence of a firstboot_sentinel which I never fully understood but it is referenced inrc.conf().
In the expanation it mentions early_late_divider which I'm trying to figure out. I want to be able to run something after rc.conf is processed.