To setup SSH and Wi-Fi connectivity before even booting up a Pi for the first time, one can put files into the boot partition on the SD card.
This has me curious. Suppose I have a particular setup I want to have on all of my new Raspberry Pis. Is there a way I can add scripts to this same boot partition that are run when the Pi boots up for the first them, but never again?