-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
20 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
|
||
# note that this is running on a virtual rpi | ||
export VIRTUAL_PI=1 | ||
apt-get update -y && apt-get full-upgrade -y | ||
ldconfig | ||
./install-deps.sh | ||
make && make install | ||
ldconfig | ||
export VIRTUAL_PI=1; | ||
apt-get update -y && apt-get full-upgrade -y; | ||
./install-deps.sh; | ||
make; | ||
make install; | ||
ldconfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
#!/bin/bash | ||
|
||
if [ `id -u` -ne 0 ]; then | ||
echo "Run as root" | ||
echo "Run as root"; | ||
exit 1; | ||
fi | ||
|
||
# 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 | ||
cd .. | ||
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" | ||
echo "liblgpio already installed"; | ||
fi |