From 1299e35a886d658bf74ff8ee3ef123227af5b744 Mon Sep 17 00:00:00 2001 From: Mathieu Moran Date: Mon, 10 Aug 2026 02:53:41 -0400 Subject: [PATCH] fix(network): use wifi-sec shorthand in nmcli connection add Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- deploy/install_netwatch.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/deploy/install_netwatch.sh b/deploy/install_netwatch.sh index eff1bc4..d8e2c06 100755 --- a/deploy/install_netwatch.sh +++ b/deploy/install_netwatch.sh @@ -45,15 +45,14 @@ fi HOME_SSID=$(nmcli -g 802-11-wireless.ssid connection show home-wifi 2>/dev/null || true) HOME_PSK=$(sudo nmcli -g 802-11-wireless-security.psk connection show --show-secrets home-wifi 2>/dev/null || true) if [ -n "$HOME_SSID" ] && [ -n "$HOME_PSK" ]; then - nmcli connection delete home-wifi-fb 2>/dev/null || true + sudo nmcli connection delete home-wifi-fb 2>/dev/null || true sudo nmcli connection add \ type wifi \ con-name home-wifi-fb \ ifname "$WLAN_FB" \ ssid "$HOME_SSID" \ - -- \ - wifi-security.key-mgmt wpa-psk \ - wifi-security.psk "$HOME_PSK" \ + wifi-sec.key-mgmt wpa-psk \ + wifi-sec.psk "$HOME_PSK" \ connection.autoconnect yes \ connection.autoconnect-priority 5 echo "Created home-wifi-fb fallback on $WLAN_FB"