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

This commit is contained in:
Miles Alan 2020-06-29 20:02:39 -05:00
parent b3463928f8
commit 18745b05bb

View file

@ -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
}