iwqr : plus de skill issue
This commit is contained in:
parent
cfeb1d35cf
commit
7a0cbd2d7e
1 changed files with 2 additions and 2 deletions
4
bin/iwqr
4
bin/iwqr
|
@ -7,8 +7,8 @@ fi
|
||||||
cd /var/lib/iwd
|
cd /var/lib/iwd
|
||||||
|
|
||||||
field='Connected network'
|
field='Connected network'
|
||||||
ssid=$(iwctl station wlan show | grep '^\s*'"${field}"'\s' | xargs | sed "s/^${field} //")
|
ssid=$(iwctl station wlan0 show | grep '^\s*'"${field}"'\s' | xargs | sed "s/^${field} //")
|
||||||
unset field
|
unset field
|
||||||
passphrase=$(awk -F = '($1 == "'"${1}"'") { print $2 }' "${ssid}.psk")
|
passphrase=$(awk -F = '($1 == "Passphrase") { print $2 }' "${ssid}.psk")
|
||||||
|
|
||||||
qrencode -s 1 -l H -o - "WIFI:T:WPA;S:${ssid};P:${passphrase};;" | catimg -H 0 -
|
qrencode -s 1 -l H -o - "WIFI:T:WPA;S:${ssid};P:${passphrase};;" | catimg -H 0 -
|
||||||
|
|
Loading…
Reference in a new issue