From 97845be9c1d52a51db80071133e7ce36e5211091 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sat, 21 Jan 2023 20:45:18 +0200 Subject: [PATCH] iwd-wifi.bash: simplify the command --- bash/iwd-wifi.bash | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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