wifiqr.bash: enable highest error correction

This commit is contained in:
Aminda Suomalainen 2021-02-18 19:43:15 +02:00
parent 9286ebbdd6
commit 838255fbac
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723
1 changed files with 4 additions and 2 deletions

View File

@ -2,10 +2,12 @@
# 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
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
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
echo "SSID: $1"