Add command to show client config and qr code

This commit is contained in:
2022-11-30 23:08:08 +01:00
parent 074ecc8857
commit c24718fab3
2 changed files with 20 additions and 0 deletions

11
scripts/show-client.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
cat "$DEVICE-client_$1.conf"
echo
echo
# Create QR-codes for clients
if [ ! -z "$(which qrencode 2>/dev/null)" ]; then
qrencode -t utf8 < "$DEVICE-client_$1.conf"
fi