Simplify and prevent killing existing mpv instances
Instead of the trigger file and killing mpv, we loop the ring indefinitely until killed. Maybe we should still got a guardrail but I still never needed it (modemmonitor would trigger missed_call late or later ?) Signed-off-by: Stacy Harper <contact@stacyharper.net> Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
This commit is contained in:
parent
65270eaea8
commit
df73a9af1c
3 changed files with 16 additions and 24 deletions
configs/default_hooks
|
@ -2,8 +2,8 @@
|
|||
|
||||
# This script is executed (asynchronously) when you pick up an incoming call
|
||||
|
||||
# remove the ring trigger
|
||||
rm /tmp/ring.trigger
|
||||
# kill existing ring playback
|
||||
MPVID="$(cat "$XDG_RUNTIME_DIR/sxmo.ring.pid")"
|
||||
kill $MPVID
|
||||
rm "$XDG_RUNTIME_DIR/sxmo.ring.pid"
|
||||
|
||||
# kill any existing playback
|
||||
pkill mpv
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue