diff --git a/bash/iwd-wifi.bash b/bash/iwd-wifi.bash index 530e466..a24a939 100755 --- a/bash/iwd-wifi.bash +++ b/bash/iwd-wifi.bash @@ -14,6 +14,9 @@ iwctl station $WIFIDEVICE scan iwctl station $WIFIDEVICE get-networks # Print the command to connect. Replace $KEY and $SSID with the actual ones -echo "% sudo iwctl --passphrase=\$KEY station $WIFIDEVICE connect \$SSID" +# The manpage says: iwctl --passphrase=PASSPHRASE station DEVICE connect SSID +# but considering it says -P is shorthand for passphrase, I think this should +# work too while being more logical in my opinion. +echo "% sudo iwctl station $WIFIDEVICE connect \$SSID -P \$KEY" # For permanent connections https://gitea.blesmrt.net/mikaela/shell-things/src/branch/master/var/lib/iwd