Is there a way to use the Init Script feature to add scripts to the Init D folder?
I was trying to save time by building a series of scripts that I can test in isolation, each time I would have a section at the top where I copy the code to a new file in Init D then replace rclocal with the usual near empty default content.
Not really following you. rc.local is run once to execute additional commands following init, so not sure how this ties into the process management daemon.
Can you illustrate your current process and what you want to achieve?
Not got as far as current process, I was thinking that I could paste some code into rc.local, save it and reboot.
The code would replicate rc.local to a filename in the code, that code could be called by some other code I put there for example v1 always looks for a v2 and if it finds it then it executes it and v2 would set the level to v3 and so from that point it is always looking for the latest version.
I am guessing out loud that v1 will be a service of some sort which will be the main code I want to run.
the original factory rc.local is written at the end of each update leaving it ready to accept the next update and so it goes on and on.
So in this way I could send someone a txt file, they copy the code therein to the local startup and it updates their router with the latest version of my code.