Please post the script you have using [code] blocks.
However a suggestion is that you create a script in /etc/init.d and create symbolic links to it in /etc/rc#.d. Do you understand that convention for starters? Which is how to create a startup script?
The script itself may be as simple as the following:
Code:
#!/bin/sh
# Automatically start up VLC to play my favorite radio station
screen;
vlc /home/pi/listen.pls disown;
A recommendation is to find the path for each of those commands; on my system they are:
Code:
/usr/bin/screen
/usr/bin/vlc
Therefore your script would contain the correct paths:
Code:
#!/bin/sh
# Automatically start up VLC to play my favorite radio station
/usr/bin/screen;
/usr/bin/vlc /home/pi/listen.pls disown;
Here are some tips on bash scripting to debug the script:
Bash Script Tips
And here is a suggestion to quickly get the script running at startup:
- Put the script into /etc/init.d
- Create symbolic links in /etc/rc2.d, /etc/rc3.d, /etc/rc4.d, and /etc/rc5.d to point to your script; i.e. ln -s ../init.d/<script-name> S99<some-name> and note you'll probably have to do this as root or use sudo