Use setsid to update /tmp/sxmo_bar after call to refresh bar after process dead

master
Miles Alan 4 years ago
parent b3463928f8
commit 18745b05bb
  1. 2
      scripts/modem/sxmo_modemcall.sh

@ -8,7 +8,7 @@ fatalerr() {
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"
(sleep 0.5; echo 1 > /tmp/sxmo_bar) &
setsid -f sh -c 'sleep 2; echo 1 > /tmp/sxmo_bar'
kill -9 0
}

Loading…
Cancel
Save