Actualizar 'scripts/rp_capturemedia.sh'

This commit is contained in:
#root_sti 2022-09-15 01:51:31 +00:00
parent be8466a07a
commit 9c048c75a3

View file

@ -29,13 +29,10 @@ case $PROMPT in
;;
esac
checkproces=$(pgrep ffmpeg)
pid=$(cat /tmp/rp_capturemedia.pid)
if [ $checkproces == $pid ]; then
herbe "recording!"
if [ -n "$(pgrep ffmpeg)" ] || [ -n "$(pgrep arecord)" ]; then
ratpoison -c "echo recording"
else
herbe "stoped!"
ratpoison -c "echo stoped!"
fi