I use omxplayer for videos and fbi for images. My problems is that when command fbi run the nex command will run at the same time. How can I serialize the fbi commands so that images and videos are showed one after the other without big gaps.
fbi -noverbose -nocomments -T 1 -1 -t 10 ${IMGS[$PLAYING]}
let PLAYING+=1
omxplayer -r -o hdmi ${VIDS[$PLAYING2]}
let PLAYING2+=1
fbi -noverbose -nocomments -T 1 -1 -t 10 ${IMGS[$PLAYING]}
let PLAYING+=1