I have just created and set up a script that starts an mplayer internet radio stream right at the startup (desktop) of the PI.
But with this set up, if the PI loses it's internet connection, the script must either be manually closed and re-opened, or the PI itself must be restarted (to run the startup script again).
I were wondering if someone here had any experience with a similar or the same problem and could possibly give me a pointer in the right direction?
The solution I am looking for is; If the PI loses it's internet connection, I wan't it to try to re-connect to the same stream URL untill it is successfull. I only have 2 days experience with Bash, Python and the PI, so any tips at all will be greatly appreciated!