Hi everyone,
(excuse me for my bad english)
I can't get out of an infinite loop.
The problem is that when the Pi is booting, it execute a command in my autostart script (/etc/xdg/lxsession/LXDE/autostart) :
@sh /home/pi/videoplayer.sh
The videoplayer script read with omxplayer a video playlist in the directory /home/pi/videos
There is the script videoplayer.sh :
#!/bin/sh
# get rid of the cursor so we don't see it when videos are running
setterm -cursor off
# set here the path to the directory containing your videos
VIDEOPATH="/home/pi/videos"
# you can normally leave this alone
SERVICE="omxplayer"
# now for our infinite loop!
while true; do
if ps ax | grep -v grep | grep $SERVICE > /dev/null
then
sleep 1;
else
for entry in $VIDEOPATH/*
do
clear
omxplayer $entry > /dev/null
done
fi
done
I tried CTRL+C, CTRL+X, ALT+F4 ... and many combinaisons but the endless loop doesn't stop while the Pi is unpowered.
Any help would be grateful,
Devi