mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-01-09 11:52:32 +01:00
add wifiqr.bash (& .gitignore) for creating QRs to join WiFis
This commit is contained in:
parent
2321006e01
commit
9620226a75
2
bash/.gitignore
vendored
Normal file
2
bash/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# wifiqr.bash output
|
||||||
|
*.png
|
13
bash/wifiqr.bash
Executable file
13
bash/wifiqr.bash
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Arguments: SSID and WPA2 (3 untested) passphrase
|
||||||
|
|
||||||
|
# Outputs QR code to terminal
|
||||||
|
qrencode -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;;"
|
||||||
|
|
||||||
|
# Prints details
|
||||||
|
echo "SSID: $1"
|
||||||
|
echo "Passphrase: $2"
|
||||||
|
echo "Stored as $1.png"
|
Loading…
Reference in New Issue
Block a user