From 97fa157b054b71168fef97eca6a5e433d69eae2e Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 26 Jul 2024 09:54:47 -0400 Subject: [PATCH] Update update add WiringPi install --- update | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/update b/update index cc357886..45d7837a 100755 --- a/update +++ b/update @@ -18,7 +18,7 @@ if [ "$1" = "u" ]; then sudo apt-get update && sudo apt-get dist-upgrade -y - sudo apt-get install -y wiringpi git libasound2-dev i2c-tools build-essential libgd-dev libmagic-dev python3-pip minicom + sudo apt-get install -y git libasound2-dev i2c-tools build-essential libgd-dev libmagic-dev python3-pip minicom fi @@ -171,6 +171,27 @@ else cd fi +if [ ! -d "/home/pi/WiringPi" ]; then + + cd + + git clone https://github.com/PinkFreud/WiringPi + cd WiringPi + ./build debian + + sudo dpkg -i debian-template/wiringpi-2.61-1.deb + + cd + + cd CubeSatSim + make debug + + FLAG=1 + + cd + +fi + cd /home/pi/pi-power-button git checkout reboot-mode-change-beta > .updated_b