From 51921e5925b8841fc44f657f3be7d7def5fbd9d3 Mon Sep 17 00:00:00 2001 From: Miles Alan Date: Sat, 20 Jun 2020 11:12:24 -0500 Subject: [PATCH] Fix bug preventing hanging up call upon killing window --- scripts/modem/sxmo_modemcall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/modem/sxmo_modemcall.sh b/scripts/modem/sxmo_modemcall.sh index 852e92a..d6c86aa 100755 --- a/scripts/modem/sxmo_modemcall.sh +++ b/scripts/modem/sxmo_modemcall.sh @@ -5,7 +5,7 @@ trap "gracefulexit" INT TERM fatalerr() { # E.g. hangup all calls, switch back to default audio, notify user, and die sxmo_vibratepine 1000 - mmcli -m "$(mmcli -L | grep -qoE 'Modem\/([0-9]+)')" --voice-hangup-all + mmcli -m "$(mmcli -L | grep -oE 'Modem\/([0-9]+)' | cut -d'/' -f2)" --voice-hangup-all alsactl --file /usr/share/sxmo/default_alsa_sound.conf restore notify-send "$1" kill -9 0