kill existing dmenu prior to asking SIM PIN

master
Maarten van Gompel 4 years ago
parent ceaea60141
commit ae3e1edd9c
  1. 1
      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 "

Loading…
Cancel
Save