I have found on the net the solution (debian testing)
to add this /etc/init.d/myscript
Code:
### BEGIN INIT INFO
# Provides: myscript
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start script at boot time and stop at shut down
# Description: Enable service provided by daemon.
### END INIT INFO
######update-rc.d myscript defaults
# enter code below
and then it makes it as rc2.d but however it starts it when I turn off the pc too