diff --git a/install b/install index 964e13ed..5b7813c9 100755 --- a/install +++ b/install @@ -404,12 +404,20 @@ fi sudo systemctl disable gpsd sudo systemctl disable gpsd.socket -if [ ! -d "/home/pi/WiringPi" ]; then - cd - git clone https://github.com/alanbjohnston/WiringPi - cd WiringPi +#if [ ! -d "/home/pi/WiringPi" ]; then +# cd +# git clone https://github.com/alanbjohnston/WiringPi +# cd WiringPi +# ./build debian +# sudo dpkg -i debian-template/wiringpi-2.61-1.deb +#fi + +if [ ! -d "/home/pi/WiringPi3" ]; then + git clone https://github.com/WiringPi/WiringPi.git WiringPi3 + cd WiringPi3 ./build debian - sudo dpkg -i debian-template/wiringpi-2.61-1.deb + mv debian-template/wiringpi*.deb . + sudo apt install ./wiringpi*.deb fi cd