mirror of
https://github.com/Clortox/dashboard.git
synced 2026-03-18 07:27:58 +00:00
Add wifi qrcode script and instructions
This commit is contained in:
1
scripts/.gitignore
vendored
Normal file
1
scripts/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
*.png
|
||||
0
scripts/.gitkeep
Normal file
0
scripts/.gitkeep
Normal file
12
scripts/wifi.sh
Executable file
12
scripts/wifi.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ $# -ne 2 ]; then
|
||||
echo "Format:"
|
||||
echo "./wifi.sh <SSID> <PASSWORD>"
|
||||
echo "The result will be in wifi.png"
|
||||
fi
|
||||
|
||||
qrencode -s 6 -o "./img/wifi.png" "WIFI:T:WPA;S:$1;P:$2;;"
|
||||
|
||||
echo "Your wifi qrcode is wifi.png !"
|
||||
echo "Your wifi qrcode is now in the local img folder as wifi.png"
|
||||
Reference in New Issue
Block a user