Skip to content

Commit

Permalink
install lgpio from apt
Browse files Browse the repository at this point in the history
  • Loading branch information
endail committed Jan 21, 2024
1 parent 1d59e3a commit 01ba27e
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions install-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,16 @@ if [ `id -u` -ne 0 ]; then
exit 1;
fi

#ldconfig -p;
#ldconfig;
#ldconfig -p;

# install lgpio from apt if available
apt-get install -y liblgpio-dev;

# build and install liblgpio if not found
#if ! $(ldconfig -p | grep -q liblgpio); then
# wget https://github.com/joan2937/lg/archive/master.zip;
# unzip master.zip;
# cd lg-master;
# make;
# make install;
# ldconfig;
# cd ..;
#else
# echo "liblgpio already installed";
#fi
# otherwise build and install liblgpio-dev if not found
if ! $(ldconfig -p | grep -q liblgpio); then
wget https://github.com/joan2937/lg/archive/master.zip;
unzip master.zip;
cd lg-master;
make;
make install;
ldconfig;
cd ..;
fi

0 comments on commit 01ba27e

Please sign in to comment.