Skip to content

Instantly share code, notes, and snippets.

@vip9
Created March 7, 2017 08:57
Show Gist options
  • Save vip9/fa1a0aca33baf65f2efff4cd387c2a6b to your computer and use it in GitHub Desktop.
Save vip9/fa1a0aca33baf65f2efff4cd387c2a6b to your computer and use it in GitHub Desktop.
#!/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