1
0
mirror of https://git.lurk.org/repos/radio-looptober.git synced 2024-12-22 12:30:32 +01:00
radio-looptober-lurk/stream_loooooops.sh

24 lines
472 B
Bash
Raw Normal View History

2022-10-09 16:17:01 +02:00
#!/bin/sh
# Do we have config file?
if [ ! -e stream_loooooops-config.xml ]
then
echo ":( write an ezstream config file plz"
fi
# We keep trying to read the playlist
# it could take some time for the download script to
# generate one the first time
while true
do
if [ -e playlist_loooooops.m3u ]
then
echo ":) playlist found"
2022-10-09 17:06:26 +02:00
ezstream -v -c stream_loooooops-config.xml
break
2022-10-09 16:17:01 +02:00
else
echo ":( playlist not found, trying again"
sleep 2s
fi
done