mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-20 10:12:06 +01:00
add at he qr shortcut to _commands.sh
This commit is contained in:
parent
d192ade8ef
commit
9ede089b7e
@ -367,4 +367,19 @@ function notifyme() {
|
||||
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user