On 9 March 2016 at 21:52, steve-ALUG@hst.me.uk wrote:
Append your code to the end of the text file /etc/rc.local That gets run on every boot.
I'm trying to avoid modifying system files because I want to be able to take a fresh Raspbian install and drop my own files over the top of it, whilst at the same time being as robust as possible in case of changes in the Raspbian image. Replacing rc.local leaves me vulnerable to a modification in the source.
(Just appending is easy but it means scripting something rather than just extracting a tar file over the top of the restored image. And and such installation script should really check for the presence of the changes before it appends, in case the script gets re-run, whereas re-extracting the tar file doesn't have that problem.)