Work on deploying on pi
This commit is contained in:
parent
1b8f2a8466
commit
4d83d9051f
|
@ -0,0 +1,19 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
VIDEOS="./VIDEOS"
|
||||||
|
PLAYER="omxplayer -o hdmi --threshold 0"
|
||||||
|
|
||||||
|
fileList="./fileList.txt"
|
||||||
|
shuffleList=$(mktemp)
|
||||||
|
|
||||||
|
ls -1 "${VIDEOS}/" > "${fileList}"
|
||||||
|
|
||||||
|
while [ 1 -eq 1 ]; do
|
||||||
|
cat "${fileList}" | shuf > "${shuffleList}"
|
||||||
|
while read videoIn; do
|
||||||
|
echo "Playing ${videoIn}..."
|
||||||
|
${PLAYER} "${VIDEOS}/${videoIn}"
|
||||||
|
done < "${shuffleList}"
|
||||||
|
done
|
|
@ -10,7 +10,7 @@ shuffleList=$(mktemp)
|
||||||
ls -1 "${VIDEOS}/" > "${fileList}"
|
ls -1 "${VIDEOS}/" > "${fileList}"
|
||||||
rm -rf playlist.txt
|
rm -rf playlist.txt
|
||||||
|
|
||||||
count=10
|
count=50
|
||||||
for i in $(seq $count); do
|
for i in $(seq $count); do
|
||||||
cat "${fileList}" | shuf > "${shuffleList}"
|
cat "${fileList}" | shuf > "${shuffleList}"
|
||||||
while read videoIn; do
|
while read videoIn; do
|
||||||
|
@ -19,4 +19,4 @@ for i in $(seq $count); do
|
||||||
done
|
done
|
||||||
|
|
||||||
rm -f "${fileList}"
|
rm -f "${fileList}"
|
||||||
rm -f "${shuffleList}"
|
rm -f "${shuffleList}"
|
||||||
|
|
Loading…
Reference in New Issue