From ae3e1edd9c98b5a4e3364194a2897e0c5fdfa79d Mon Sep 17 00:00:00 2001 From: Maarten van Gompel Date: Wed, 31 Mar 2021 17:05:42 +0200 Subject: [PATCH] kill existing dmenu prior to asking SIM PIN --- scripts/modem/sxmo_unlocksim.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/modem/sxmo_unlocksim.sh b/scripts/modem/sxmo_unlocksim.sh index 12eaa5a..3f04b07 100755 --- a/scripts/modem/sxmo_unlocksim.sh +++ b/scripts/modem/sxmo_unlocksim.sh @@ -20,6 +20,7 @@ if [ -x "$XDG_CONFIG_HOME/sxmo/hooks/unlocksim" ]; then "$XDG_CONFIG_HOME/sxmo/hooks/unlocksim" "$(sim_n)" else retry=1 + pkill dmenu #kill existing dmenu while [ $retry -eq 1 ]; do PICKED="$( echo -e "Cancel\n0000\n1234" | sxmo_dmenu_with_kb.sh -l 3 -c -p "PIN:" | tr -d "\n\r "