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>
		
			
				
	
	
		
			9 lines
		
	
	
	
		
			249 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
	
		
			249 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
#!/usr/bin/env sh
 | 
						|
 | 
						|
# This script is executed (asynchronously) when you missed a call
 | 
						|
# You can use it to play a ring tone
 | 
						|
 | 
						|
# kill existing ring playback
 | 
						|
MPVID="$(cat "$XDG_RUNTIME_DIR/sxmo.ring.pid")"
 | 
						|
kill $MPVID
 | 
						|
rm "$XDG_RUNTIME_DIR/sxmo.ring.pid"
 |