This commit is contained in:
2025-06-29 15:48:47 +02:00
parent 30e4e81215
commit a3d33d3c6f

View File

@@ -15,6 +15,8 @@ if [ -z "$CHOSEN_SSID" ]; then
exit 0 exit 0
fi fi
CHOSEN_SSID="${CHOSEN_SSID%?}"
# Tjek om vi allerede er forbundet til det valgte netværk # Tjek om vi allerede er forbundet til det valgte netværk
if nmcli connection show --active | grep -wq "^${CHOSEN_SSID}"; then if nmcli connection show --active | grep -wq "^${CHOSEN_SSID}"; then
exit 0 exit 0