Raumi
6 years ago
10 changed files with 151 additions and 82 deletions
@ -0,0 +1,4 @@ |
|||||
|
# Installs package if not yet installed |
||||
|
if [ $(sudo dpkg-query -l | grep "ii $1" | wc -l) = 0 ]; then |
||||
|
sudo apt-get install $1 -y > /dev/null |
||||
|
fi |
@ -0,0 +1,8 @@ |
|||||
|
#!/bin/bash |
||||
|
|
||||
|
# Display an image on the LCD |
||||
|
|
||||
|
# make sure fbi is installed |
||||
|
./XXaptInstall.sh fbi |
||||
|
|
||||
|
sudo fbi -a -T 1 -d /dev/fb1 --noverbose $1 2> /dev/null |
@ -0,0 +1,10 @@ |
|||||
|
#!/bin/bash |
||||
|
|
||||
|
# Display a QR code for the string in qr.txt |
||||
|
|
||||
|
# make sure qrcode-encode and fbi are installed |
||||
|
./XXaptInstall.sh qrencode |
||||
|
./XXaptInstall.sh fbi |
||||
|
|
||||
|
qrencode -l L -o /home/admin/qr.png < /home/admin/qr.txt > /dev/null |
||||
|
sudo fbi -a -T 1 -d /dev/fb1 --noverbose /home/admin/qr.png 2> /dev/null |
@ -0,0 +1,4 @@ |
|||||
|
#!/bin/bash |
||||
|
sudo killall -3 fbi |
||||
|
shred /home/admin/qr.png 2> /dev/null |
||||
|
rm -f /home/admin/qr.png 2> /dev/null |
After Width: | Height: | Size: 47 KiB |
Loading…
Reference in new issue