Add more config files

This commit is contained in:
Arti Zirk
2017-11-08 22:09:35 +02:00
parent 35658d321f
commit c47c525c73
5 changed files with 226 additions and 0 deletions

5
bin/kahtlanefm.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
while true; do
GST_DEBUG=2 gst-launch-1.0 pulsesrc device=alsa_output.pci-0000_00_09.0.analog-stereo.monitor ! audioconvert ! audio/x-raw,channels=2 ! taginject tags="title=Viido,artist=Lapikud" ! vorbisenc quality=0.8 ! oggmux ! shout2send ip=kahtlane.eu port=8000 username= password= mount=live
sleep 10
done

11
bin/kodistarter.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
echo "Kodi starter"
while true;do
echo -e "HTTP/1.0 201 No Content\n\r\n\r" | nc -l 127.0.0.1 6969 > /dev/null
if [[ -z "$(ps aux | grep /usr/bin/kodi | grep -v grep)" ]]; then
echo "Starting kodi"
kodi &
else
echo "Kodi is already running"
fi
done