SyntaxFix
Write A Post
Hire A Developer
Questions
I got my script to work by editing /etc/rc.local then issuing the following 3 commands.
/etc/rc.local
sudo mv /filename /etc/init.d/ sudo chmod +x /etc/init.d/filename sudo update-rc.d filename defaults
Now the script works at boot.