I'd like to know, whether there is an option to execute a script on the first boot of Raspberry. There is a catch though.
I'd like to be able to put the script in the boot folder. Since it is available on the SD card from Windows, I could prepare the script there before the first boot.
The reason for my specific requirements is that I'm using 5" Waveshare display in custom enclosure and I have to disconnect HDMI connector, connect a regular HDMI display, boot, download and install drivers and then replace the cable with connector again after reboot.
I've been thinking, if there is a way I could craft a script, which would configure the WiFi connection, clone repo with driver scripts and run one of them (it finishes with
sudo reboot). If I needed to prepare a new SD card for my Raspberry setup, I'd simply put that script in boot folder, power Raspberry up and just wait until it reboots after installing drivers.
Is it possible?