Quit Shell Script on Raspberry Pi (no keyboard input detected)

333 Views Asked by At

I've made a shell script on a Raspberry Pi to run a video file on loop with no on screen display.

The code at the moment is just

#!/bin/bash

omxplayer [path to file] -o local --no-osd --loop

which I'm then saving in a .sh file and making it executable. This is all with the aim of adding this script to .bashrc to run on startup.

However when I execute the shell script, even just directly from the .sh file, no keyboard presses are detected so there's no way to exit omxplayer.

I just wanted to ask if there's something I'm missing that I could include in the shell script that would allow me to quit omxplayer using the keyboard?

Thank you so much!!!

0

There are 0 best solutions below