Sane message when terminating call with unknown number and more verbose output to stderr from modem scripts

This commit is contained in:
Maarten van Gompel 2020-12-07 17:50:36 +01:00
parent fc051045c9
commit 4a90d86f56
4 changed files with 23 additions and 10 deletions

View file

@ -4,6 +4,7 @@ trap "gracefulexit" INT TERM
fatalerr() {
# E.g. hangup all calls, switch back to default audio, notify user, and die
mmcli -m "$(mmcli -L | grep -oE 'Modem\/([0-9]+)' | cut -d'/' -f2)" --voice-hangup-all
echo "$1" >&2
notify-send "$1"
(sleep 0.5; sxmo_statusbarupdate.sh) &
kill -9 0