This commit is contained in:
rootzoll
2021-08-19 15:31:55 +02:00

View File

@@ -368,3 +368,18 @@ function whitepaper() {
cd /home/admin/config.scripts
./bonus.whitepaper.sh on
}
# command: qr ["string"]
# shows a QR code from the string
function qr() {
if [ ${#1} -eq 0 ]; then
echo "# Error='missing string'"
fi
echo
echo "Displaying the text:"
echo "$1"
echo
qrencode -t ANSIUTF8 "${1}"
echo "(To shrink QR code: MacOS press CMD- / Linux press CTRL-)"
echo
}