mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-29 14:49:22 +01:00
iwd-wifi.bash: simplify the command
This commit is contained in:
parent
3faa905345
commit
97845be9c1
@ -14,6 +14,9 @@ iwctl station $WIFIDEVICE scan
|
|||||||
iwctl station $WIFIDEVICE get-networks
|
iwctl station $WIFIDEVICE get-networks
|
||||||
|
|
||||||
# Print the command to connect. Replace $KEY and $SSID with the actual ones
|
# 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
|
# For permanent connections https://gitea.blesmrt.net/mikaela/shell-things/src/branch/master/var/lib/iwd
|
||||||
|
Loading…
Reference in New Issue
Block a user