~mil/sxmo-utils

8cf2d3d5611fbf252cc0823be623926a36f2baba — Maarten van Gompel 3 months ago 250cb91
unlocksim fix

Signed-off-by: Stacy Harper <contact@stacyharper.net>
2 files changed, 4 insertions(+), 1 deletions(-)

M configs/default_hooks/unlocksim
M scripts/modem/sxmo_modemmonitor.sh
M configs/default_hooks/unlocksim => configs/default_hooks/unlocksim +1 -1
@@ 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)"

M scripts/modem/sxmo_modemmonitor.sh => scripts/modem/sxmo_modemmonitor.sh +3 -0
@@ 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