unlocksim fix

Signed-off-by: Stacy Harper <contact@stacyharper.net>
master
Maarten van Gompel 3 years ago committed by Stacy Harper
parent 250cb91652
commit 8cf2d3d561
No known key found for this signature in database
GPG Key ID: 5BAC92328B7C5D65
  1. 2
      configs/default_hooks/unlocksim
  2. 3
      scripts/modem/sxmo_modemmonitor.sh

@ -2,7 +2,7 @@
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
. "$(which sxmo_common.sh)"
modem_n() {
MODEMS="$(mmcli -L)"

@ -286,6 +286,9 @@ mainloop() {
pidof unlocksim || sxmo_hooks.sh unlocksim &
elif echo "$newstate" | grep "int32 8"; then
echo registered > "$MODEMSTATEFILE"
#if there is a PIN entry menu open, kill it:
# shellcheck disable=SC2009
ps aux | grep dmenu | grep PIN | gawk '{ print $1 }' | xargs kill
checkforfinishedcalls
checkforincomingcalls
checkfornewtexts

Loading…
Cancel
Save