mirror of
https://github.com/Retropex/raspiblitz.git
synced 2025-05-13 03:30:49 +02:00
Merge pull request #4913 from steepdawn974/fix/add-qrencode-dependency-check
fix: add qrencode dependency check to cl-plugin.clnrest.sh
This commit is contained in:
commit
b20e9f0bab
@ -11,6 +11,12 @@ fi
|
|||||||
# check and load raspiblitz config to know which network is running
|
# check and load raspiblitz config to know which network is running
|
||||||
source /mnt/hdd/raspiblitz.conf
|
source /mnt/hdd/raspiblitz.conf
|
||||||
|
|
||||||
|
# check and install qrencode if not present
|
||||||
|
if [ $(dpkg-query -l | grep "ii qrencode" | wc -l) = 0 ]; then
|
||||||
|
echo "# Installing qrencode..."
|
||||||
|
sudo apt-get install -y qrencode >/dev/null 2>&1
|
||||||
|
fi
|
||||||
|
|
||||||
echo "# Running: 'cl-plugin.clnrest.sh $*'"
|
echo "# Running: 'cl-plugin.clnrest.sh $*'"
|
||||||
|
|
||||||
source <(/home/admin/config.scripts/network.aliases.sh getvars cl $2)
|
source <(/home/admin/config.scripts/network.aliases.sh getvars cl $2)
|
||||||
|
Loading…
Reference in New Issue
Block a user