Skip to main content
2 of 2
added 1 character in body
JPX
  • 553
  • 2
  • 4
  • 13

I found this kind of solution. While loop waits until omxplayer and fbi process has ended and then next image or video can be shown.

while ps ax | grep -v grep | grep -E "omxplayer|fbi" > /dev/null; do 
    sleep 0.1
done
JPX
  • 553
  • 2
  • 4
  • 13