From cf3e52a2d68c2f7152a827d7f4eb4a2782603b44 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 8 Mar 2026 10:22:00 -0400 Subject: [PATCH] Update install update pi_pacsat and pacsat_telem if changed --- install | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/install b/install index 7f2e7272..a9945eb7 100755 --- a/install +++ b/install @@ -505,6 +505,18 @@ if [ ! -f "$FILE" ]; then echo "uplink_max_period_for_client_in_seconds=60" >> pacsat.state fi +cd /home/pi/pi_pacsat/Debug/ + +git pull --no-rebase > .updated +grep 'changed' /home/pi/pi_pacsat/Debug/.updated +if [[ $(grep 'changed' /home/pi/pi_pacsat/Debug/.updated) ]]; then + + echo "updating pi_pacsat" + make clean + make all + FLAG=1 +fi + FILE=/home/pi/pacsat_telem/Debug/pacsat_telem # code has already been compiled if [ ! -f "$FILE" ]; then cd @@ -517,6 +529,19 @@ if [ ! -f "$FILE" ]; then make all fi +cd /home/pi/pacsat_telem/Debug/ + +git pull --no-rebase > .updated +# git checkout master-fox +grep 'changed' /home/pi/pacsat_telem/Debug/.updated +if [[ $(grep 'changed' /home/pi/pacsat_telem/Debug/.updated) ]]; then + + echo "updating pacsat_telem" + make clean + make all + FLAG=1 +fi + sudo sed -i 's/#hdmi_group=1/hdmi_group=2/g' /boot/config.txt sudo sed -i 's/#hdmi_mode=1/hdmi_mode=16/g' /boot/config.txt sudo sed -i 's/#hdmi_force_hotplug=1/hdmi_force_hotplug=1/g' /boot/config.txt