I'm running a raspbian (based on debian). I want to change the priority of the init services so the very first script which is run by init is one made for me. How can I do it?
On runlevel S I have 3 scripts with priortity 01: hostname.sh, fake-hwclock and mountkernfs.sh. If I just put my script on runlevel S with priority 01, it's not the first one to be executed. I have tried to change the priortiy of all these scripts to 02 using (for example in the case of mountkernfs.sh)
sudo update-rc.d -f mountkernfs.sh remove sudo update-rc.d mountkernfs.sh start 02 S
The first command effectively removes the script from /etc/rcS.d. The second command puts again mountkernfs.sh with priority 01.
Any idea? Thank you!