Created
March 7, 2017 08:57
-
-
Save vip9/fa1a0aca33baf65f2efff4cd387c2a6b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
s=`screen -ls | grep roxy | wc -l` | |
if [ $s -gt 1 ]; | |
then | |
echo already running | |
exit 1; | |
fi | |
/usr/bin/sudo /sbin/modprobe snd-bcm2835 | |
while true | |
do | |
omxplayer -o local http://lodz.radio.pionier.net.pl:8000/pl/roxyfm.ogg | |
omxplayer -o local http://bialystok.radio.pionier.net.pl:8000/pl/roxyfm.ogg | |
omxplayer -o local http://bialystok.radio.pionier.net.pl:8000/pl/tuba8-1.mp3 | |
omxplayer -o local http://wroclaw.radio.pionier.net.pl:8000/pl/tuba8-1.mp3 | |
sleep 5s | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment