Actualizar 'scripts/rp_capturemedia.sh'
This commit is contained in:
parent
be8466a07a
commit
9c048c75a3
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue