fix(network): use wifi-sec shorthand in nmcli connection add
Co-authored-by: Copilot <[email protected]>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user