QR wifi image creator

This commit is contained in:
2025-08-03 13:13:02 +02:00
parent bfef7aadc2
commit 11c712056d

15
.functions/qr-wifi.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
qr-wifi(){
#create a qr-code for wifi access
# $1 SSID
# $2 Preshared key
# #3 (optional) png output file, default wifi.png
local outputfile="${3:-wifi.png}"
local ssid="$1"
local pass="$2"
qrencode -o "$outputfile" "WIFI:T:WPA;S:${ssid};P:${pass};;"
}