unlocksim fix
Signed-off-by: Stacy Harper <contact@stacyharper.net>
This commit is contained in:
parent
250cb91652
commit
8cf2d3d561
2 changed files with 4 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# include common definitions
|
# include common definitions
|
||||||
# shellcheck source=scripts/core/sxmo_common.sh
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
. "$(dirname "$0")/sxmo_common.sh"
|
. "$(which sxmo_common.sh)"
|
||||||
|
|
||||||
modem_n() {
|
modem_n() {
|
||||||
MODEMS="$(mmcli -L)"
|
MODEMS="$(mmcli -L)"
|
||||||
|
|
|
@ -286,6 +286,9 @@ mainloop() {
|
||||||
pidof unlocksim || sxmo_hooks.sh unlocksim &
|
pidof unlocksim || sxmo_hooks.sh unlocksim &
|
||||||
elif echo "$newstate" | grep "int32 8"; then
|
elif echo "$newstate" | grep "int32 8"; then
|
||||||
echo registered > "$MODEMSTATEFILE"
|
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
|
checkforfinishedcalls
|
||||||
checkforincomingcalls
|
checkforincomingcalls
|
||||||
checkfornewtexts
|
checkfornewtexts
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue