OK thx JerryPenguin.
And thx vpeter for the link and the script!
OK thx JerryPenguin.
And thx vpeter for the link and the script!
Thank you both.
With autostart.sh I struggled a bit. Putting sleep in background has no effect... hmm.
Also I don't understand why to execute some command in background and then execute the script. Or is the script then executed in background too because of the backgrounded commands before?
And for what reason does @reboot in cron not work?
Just for my understanding.
Solution...
I did
(
sleep 5
) &
/storage/.kodi/myscript.sh &
exit
but sleep won't get recognized.
So I put sleep befor dropbox download in myscript.sh. I figured out that sleep 1 is time enough to get online and download before pvr simple loads the file.
Sleep 6 takes too long so pvr simple stays empty then. Anything between sleep 1 and 5 should be fine.
Seems like filezilla deleted not correctly but with ssh terminal it worked.
Don't know what was going wrong but i had forgot I put a systemctl restart kodi at the end so pvr simple reloads the playlist after download when executed from cron.
I made this new script without the kodi restart
Now the rpi boots fine but only line that is executed is the delete old playlist command.
Like you mentioned seems like dropbox at this time is not reachable but ethernet and ssh is up.
Next problem i guess would be that I need a short delay for pvr simple to wait loading playlist befor script is finfished.
Any suggestions?
OK but its deleted so there should be no more access at boot?
The script loads a m3u playlist from my dropbox folder for simple iptv
It gets executed 3 times a week and to be safe i need it fresh after some boot.
I want to execute a shell script when libreelec boots.
Tried @reboot in cron but seems not supported.
Then found autostart.sh... I added with nano the path to script and did 755 on autostart.sh.
At reboot rpi is stuck after rainbow splash. Tried filezilla ssh and deleted autostart.sh but the device keeps hanging.
Any quick fix for this?
I'm on 9.0.1