To make your script run later in the boot sequence, simply add a sequence number, such as 98 in the following command. Then most of the dependencies will be fulfilled.
I once had to use a loading script that depended on other loading scripts. This brought a lot of trouble. In the end, I used this command to solve the problem:
cd /etc/init.d sudo update-rc.d my_script defaults 98
98 means my_script gets serial number 98 when loading, it looks like it ranges from 1 to 99, and most other loading scripts have lower numbers, this ensures that my script has all its dependencies.
BTW, to remove the old script, this can be used:
sudo update-rc.d -f my_old_script remove # -f means 'force'
Hope this helps.
Andrew_1510
source share