mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-14 12:39:23 +01:00
16 lines
440 B
Bash
Executable File
16 lines
440 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# 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 -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 -l H -s 6 -o $1.png "WIFI:T:WPA;S:$1;P:$2;;"
|
|
|
|
# Prints details
|
|
echo "SSID: $1"
|
|
echo "Passphrase: $2"
|
|
echo "Stored as $1.png"
|