home · contact · privacy
Fix wifi setup.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 13 Mar 2025 16:30:54 +0000 (17:30 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 13 Mar 2025 16:30:54 +0000 (17:30 +0100)
testing/scripts/setup_desktop.sh

index c1ea38429880d7b1d62be8ceb36b52b3e25a2605..27ba1f0b5ed94d5b5d327d91c3dbd5b6e0b32751 100755 (executable)
@@ -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