mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-26 19:47:05 +02:00
fix image var
This commit is contained in:
@@ -94,15 +94,15 @@ if [ "${command}" == "image" ]; then
|
||||
exit 1
|
||||
else
|
||||
# test the image path - if file exists
|
||||
if [ -f "$imagepath" ]; then
|
||||
echo "# OK - file exists: ${imagepath}"
|
||||
if [ -f "$imagePath" ]; then
|
||||
echo "# OK - file exists: ${imagePath}"
|
||||
else
|
||||
echo "error='file does not exist'"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
sudo fbi -a -T 1 -d /dev/fb1 --noverbose ${imagepath} 2> /dev/null
|
||||
sudo fbi -a -T 1 -d /dev/fb1 --noverbose ${imagePath} 2> /dev/null
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
@@ -119,11 +119,11 @@ if [ "${connector}" == "lndconnect" ]; then
|
||||
source /etc/profile
|
||||
|
||||
# write qr code data to an image
|
||||
cd /home/admin
|
||||
lndconnect --host=${host} --port=${port} --image ${extraparamter}
|
||||
imagePath=$(readlink -f lndconnect-qr.png)
|
||||
|
||||
# display qr code image on LCD
|
||||
/home/admin/config.scripts/blitz.lcd.sh image ${imagePath}
|
||||
/home/admin/config.scripts/blitz.lcd.sh image /home/admin/lndconnect-qr.png
|
||||
|
||||
elif [ "${connector}" == "shango" ]; then
|
||||
|
||||
|
Reference in New Issue
Block a user