add external random video script

This commit is contained in:
mmaster 2021-09-21 21:45:00 +02:00
parent aba7738b4c
commit 7a51ad284a
1 changed files with 9 additions and 0 deletions

9
randomvideo.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/sh
$folder="/home/pi/Video"
$player="cvlc"
$playerparam="--no-osd --play-and-exit"
while true; do
$player $playerparam"$(find "$folder" -maxdepth 1 -type f |sort -R |head -n1)"
done