A script used at boot should be in the following folder:
chmod +x the script to make it an executable file.
Run:
Code:
update-rc.d "filename" defaults 5
where filename without the "" is the name of your script. Behind defaults is the runlevel u want to add it too, 5 is for when you want to start it with X. i suggest reading:
for further and more advanced functions!
Good luck!