On 7 March 2016 at 18:31, Chris Green cl@isbd.net wrote:
Can't you add something to rc.local that would look for files in the SD card and execute them? You'd need to change rc.local once but that's all.
The SD card is where the OS is. Any time I re-image I'll need to make the same edits.
Ie the "workflow" is: - Download latest Raspbian disk image from the Pi website - Use dd to copy it to SD (ie overwriting what's there) - Use tar to extract a set of my files over the top of the freshly created SD card - Eject SD card and boot the Pi from it
I can add a step that makes various edits as well as just replacing files but so much of the Debian system is based around not editing system files but adding your own alongside (eg /etc/cron.d, /etc/apache2/conf.d) that it seems odd that something as fundamental as "run this on startup" isn't covered in the same way.