From 9be2b30efa3bb87b477f65dbab0a2973d0016426 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 13 Mar 2025 17:30:54 +0100 Subject: [PATCH] Fix wifi setup. --- testing/scripts/setup_desktop.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/scripts/setup_desktop.sh b/testing/scripts/setup_desktop.sh index c1ea384..27ba1f0 100755 --- a/testing/scripts/setup_desktop.sh +++ b/testing/scripts/setup_desktop.sh @@ -77,9 +77,9 @@ WLAN_PSK=$(get_network_interfaces_last_wpa_value 'psk') if [ ! -z "${WLAN_SSID}" ]; then echo "Found, adding to NetworkManager." if [ -z "${WLAN_PSK}" ]; then - nmcli connection add type wifi ssid "${WLAN_SSID}" + nmcli connection add type wifi wifi.ssid "${WLAN_SSID}" else # NB: assumes last (collected with tail -1) wpa-psk that of last wlan-ssid - nmcli connection add type wifi ssid "${WLAN_SSID}" password "${WLAN_PSK}" + nmcli connection add type wifi wifi.ssid "${WLAN_SSID}" wifi-sec.key-mgmt wpa-psk wifi-sec.psk "${WLAN_PSK}" fi fi -- 2.30.2