I think a very easy way to start one or more scripts after booting is using cron. To do this we have to do the following:
== 1. execute remountrw to make changes permanent ==
remountrw
== 2. create the directory /etc/cron.reboot ==
mkdir /etc/cron.reboot
== 3. add a line to /etc/crontab ==
echo "@reboot root cd / && run-parts --report /etc/cron.reboot" >> /etc/crontab
This will tell cron to execute all scripts in the directory /etc/cron.reboot
== 4. create a script in /etc/cron.reboot ==
Edit a script (e.g. myscript) and save it in the directory /etc/cron.reboot
vi /etc/cron.reboot/myscript
Type your script into vi. In this example we copy the date and time into the file /root/reboot_time after each reboot.
#!/bin/bash
date > /root/reboot_time
... then save it by pressing [esc], then type :wq
Don't forget that #!/bin/bash has to be the first line.
== 5. make the script executable ==
chmod +x /etc/cron.reboot/myscript
You can add multiple scripts to the directory /etc/cron.reboot/ as all scripts in /etc/cron.reboot (which are executable) will be now executed after booting.
== 6. execute remountro ==
remountro