From db0cbac8aba111f4699308b14c5827aab9ab8ad0 Mon Sep 17 00:00:00 2001 From: Willow Barraco Date: Mon, 6 Feb 2023 10:14:39 +0100 Subject: [PATCH] Add an explicit "None" choice while adding wpa network passphrase MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit And refactorise those menu choices computing… Signed-off-by: Willow Barraco Signed-off-by: Peter John Hartman --- scripts/core/sxmo_networks.sh | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/scripts/core/sxmo_networks.sh b/scripts/core/sxmo_networks.sh index dcfd52d..02c7a72 100755 --- a/scripts/core/sxmo_networks.sh +++ b/scripts/core/sxmo_networks.sh @@ -130,19 +130,21 @@ addnetworkgsmmenu() { } addnetworkwpamenu() { - SSID="$( - nmcli d wifi list | tail -n +2 | grep -v '^\*' | awk -F' ' '{ print $6 }' | grep -v '\-\-' | - xargs -0 printf "$icon_cls Close Menu\n%s" | - sxmo_dmenu_with_kb.sh -p "SSID" + SSID="$(cat <