Autocomplete WPA networks with scanned ones

Signed-off-by: Reed Wade <reedwade@misterbanal.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
master
Reed Wade 4 years ago committed by Maarten van Gompel
parent 6aaca4b161
commit 56efe6e166
  1. 5
      scripts/core/sxmo_networks.sh

@ -54,8 +54,9 @@ addnetworkgsmmenu() {
addnetworkwpamenu() { addnetworkwpamenu() {
SSID="$( SSID="$(
echo "Close Menu" | nmcli d wifi list | tail -n +2 | grep -v '^*' | awk '{ print $2 }' | grep -v '\-\-' |
sxmo_dmenu_with_kb.sh -c -p "Add WPA: SSID" -fn "Terminus-20" -l 20 xargs -0 printf 'Close Menu\n%s' |
sxmo_dmenu_with_kb.sh -c -p "Add WPA: SSID" -fn "Terminus-20" -l 20
)" )"
[ "$SSID" = "Close Menu" ] && return [ "$SSID" = "Close Menu" ] && return

Loading…
Cancel
Save