From a3d33d3c6f7b2ce84ed9c930dbba0d0c98ff75459287337997073ce8a2a233db Mon Sep 17 00:00:00 2001 From: Mikkel Harboe Arp Henriksen Date: Sun, 29 Jun 2025 15:48:47 +0200 Subject: [PATCH] wifi --- templates/launch-wifi-menu.sh.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/launch-wifi-menu.sh.j2 b/templates/launch-wifi-menu.sh.j2 index c8ff6b0..785b54f 100644 --- a/templates/launch-wifi-menu.sh.j2 +++ b/templates/launch-wifi-menu.sh.j2 @@ -15,6 +15,8 @@ if [ -z "$CHOSEN_SSID" ]; then exit 0 fi +CHOSEN_SSID="${CHOSEN_SSID%?}" + # Tjek om vi allerede er forbundet til det valgte netværk if nmcli connection show --active | grep -wq "^${CHOSEN_SSID}"; then exit 0