Hi,
i want to delay the hyperion service start from the autostart.sh on my libreelec RPI4, because the HDMI signal is lost when the RPI4 boots up and hyperion starts at the same time.
First, i tried to put a sleep command into the autostart.sh file, but the RPI waits until the whole autostart.sh file had a successful run.
So i did following:
1. i changed my autostart.sh to:
2. i created a sh in the same directory as the autostart.sh named hyperion.sh and put the start command in it with a sleep command:
sleep 15
/storage/hyperion/bin/hyperiond.sh /storage/.config/hyperion.config.json > /storage/logfiles/hyperion.log 2>&1 &
So this does not work. And i have no idea why. In my opinion it should this way:
The RPI boots up and the autostart calls the hyperion.sh script i wrote. So the autostart.sh scripts comes to an end(and the RPI finishs booting)
my hyperion.sh script waits 15 seconds (while this 15 seconds the RPI finished booting and has enough resources to start hyperion without cutting the HDMI signal) and then starts the hyperion service.
i think, i am doing something wrong with the hyperion.sh call. It does not start my own script. I also tried chmod 755 on the hyperion.sh script. So what am i missing?`
This can't be so difficult, there are only really really basic commands...