~alpine/aports

[PATCH sxmo-utils v5 3/8] Autocomplete WPA networks with scanned ones

Details
Message ID
<20201010135935.19235-3-reedwade@misterbanal.net>
DKIM signature
missing
Download raw message
Patch: +3 -2
Signed-off-by: Reed Wade <reedwade@misterbanal.net>
---
 scripts/core/sxmo_networks.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/scripts/core/sxmo_networks.sh b/scripts/core/sxmo_networks.sh
index ab19bc9..771a833 100755
--- a/scripts/core/sxmo_networks.sh
+++ b/scripts/core/sxmo_networks.sh
@@ -54,8 +54,9 @@ addnetworkgsmmenu() {

addnetworkwpamenu() {
	SSID="$(
		echo "Close Menu" |
			sxmo_dmenu_with_kb.sh -c -p "Add WPA: SSID" -fn "Terminus-20" -l 20
		nmcli d wifi list | tail -n +2 | grep -v '^*' | awk '{ print $2 }' | grep -v '\-\-' |
		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

-- 
2.28.0
Reply to thread Export thread (mbox)