mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-10-15 10:07:25 +02:00
wifiqr.bash: enable highest error correction
This commit is contained in:
parent
9286ebbdd6
commit
838255fbac
@ -2,10 +2,12 @@
|
|||||||
|
|
||||||
# Arguments: SSID and WPA2 (3 untested) passphrase
|
# Arguments: SSID and WPA2 (3 untested) passphrase
|
||||||
|
|
||||||
|
# -l H uses the highest error correction in case 30 % gets damaged (or artistried upon)
|
||||||
|
|
||||||
# Outputs QR code to terminal
|
# Outputs QR code to terminal
|
||||||
qrencode -t utf8 "WIFI:T:WPA;S:$1;P:$2;;"
|
qrencode -l H -t utf8 "WIFI:T:WPA;S:$1;P:$2;;"
|
||||||
# Stores QR code as SSID.png, -s doubles pixel size from default 3
|
# Stores QR code as SSID.png, -s doubles pixel size from default 3
|
||||||
qrencode -s 6 -o $1.png "WIFI:T:WPA;S:$1;P:$2;;"
|
qrencode -l H -s 6 -o $1.png "WIFI:T:WPA;S:$1;P:$2;;"
|
||||||
|
|
||||||
# Prints details
|
# Prints details
|
||||||
echo "SSID: $1"
|
echo "SSID: $1"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user