unlocksim fix

Signed-off-by: Stacy Harper <contact@stacyharper.net>
This commit is contained in:
Maarten van Gompel 2021-07-19 18:45:54 +02:00 committed by Stacy Harper
parent 250cb91652
commit 8cf2d3d561
No known key found for this signature in database
GPG key ID: 5BAC92328B7C5D65
2 changed files with 4 additions and 1 deletions

View file

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