Learning why a Shell Script is not run in boot sequence – Troubleshooting in Raspberry Pi Development

What I want to achive

(but did not so far…)

I want a Raspberry Pi to automatically run a slideshow after the boot sequence.

How I thought I’d do that

I have a working shell script that launches the slideshow:

I added a new service to /etc/init.d to be run when the machine boots:

I set the rights for this file to 755 using:

I added the necessary links using update-rc.d as:

What is happening

In the boot sequence the shell script is run as I get a message of the slideshow program fbi stating PathToMyPictures/* loading FAILED.

When I manually start the script using sudo /etc/init.d/MyService start the script is run thus the slideshow shown.

Resources I’ve been using to find an answer (but did not so far)


in German:

Raspberry Pi: Autostart von Programmen einrichten


I’ll be happy to read your comments and thoughts to get on with my troubleshooting!

Leave a Reply

Your email address will not be published. Required fields are marked *

ten − 7 =