To be fair to young ConradG13, getting programs started at boot up on a Linux system is not exactly trivial, it's pretty complex process, there are many ways to do it.
For example: the advice given by drice above is incorrect. Yes Raspbian Jessie uses systemd but that "update-rc.d..." thing still works on Jessie. I just tried it here to make sure. See below.
For another example: I have been using Linux exclusively since 1997 and have never seen the "missing LSB tags" error ConradG13 presents. I did not even know that init scripts had been LSB'ized. That is made compatible with the Linux Standard Base.
Suggesting that people do some research and learning is reasonable. But as we all know when one is starting out one does not even know were to begin or what to look for. A simple pointer (link now a days) in the right direction can help a lot.
Also a big problem is that googling around will often find you a lot of info that is wrong, has become wrong over time as systems change and it becomes out of date, or is wrong for your particular machines configuration.
What to do ?:
It turns out that the Linux Standard Base specification requires init scripts to have a special header that tells the update-rc.d command when it should start your program. For example it tells which other subsystems should be running before your program is started, networking, local file systems mounted etc, etc. This header also tells in which run levels the program should be started and stopped.
All you need to do is add something that looks like the following to the top of the radio script:
Code: Select all
# First you need the init information for the LSB standard SysV init scripts
### BEGIN INIT INFO
# Provides: myprog
# Required-Start: $network $local_fs $syslog dbus
# Required-Stop: $network $local_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start myprog
### END INIT INFO
# Start your program here:
In the above example you will need to change the program name "myprog", change the description line, and perhaps change the "Required..." lines. You won't need the "touch /etc/init.d/myprog" line, that was just me testing that it worked.
Do follow the link to the Debian information I linked to above to read about what is going on here.