2021-12-21 22:53:24 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ $# -ne 2 ]; then
|
|
|
|
echo "Format:"
|
|
|
|
echo "./wifi.sh <SSID> <PASSWORD>"
|
|
|
|
echo "The result will be in wifi.png"
|
|
|
|
fi
|
|
|
|
|
2021-12-22 00:42:26 +00:00
|
|
|
qrencode -s 6 --background=D3D3D37F -o "./img/wifi.png" "WIFI:T:WPA;S:$1;P:$2;;"
|
2021-12-21 22:53:24 +00:00
|
|
|
|
|
|
|
echo "Your wifi qrcode is wifi.png !"
|
|
|
|
echo "Your wifi qrcode is now in the local img folder as wifi.png"
|