Update install update pi_pacsat and pacsat_telem if changed

master-b-p-s
Alan Johnston 3 weeks ago committed by GitHub
parent f6821e6750
commit cf3e52a2d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

Loading…
Cancel
Save

Powered by TurnKey Linux.