Skip to content

Commit

Permalink
Update install-deps.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
endail committed Jan 19, 2024
1 parent 8345425 commit 2d70acc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/install-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ if [ `id -u` -ne 0 ]; then
exit 1;
fi

ldconfig

# build and install liblgpio if not found
if ! $(ldconfig -p | grep -q liblgpio); then
wget https://abyz.me.uk/lg/lg.zip
unzip lg.zip
cd lg
make
make install
ldconfig
cd ..
else
echo "liblgpio already installed"
Expand All @@ -23,6 +26,7 @@ if ! $(ldconfig -p | grep -q libhx711); then
cd hx711
make
make install
ldconfig
cd ..
else
echo "libhx711 already installed"
Expand Down

0 comments on commit 2d70acc

Please sign in to comment.