added more prints

pull/132/head
alanbjohnston 5 years ago committed by GitHub
parent 3d74dd8c1b
commit d5a9b04e36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -29,30 +29,30 @@ make debug
FLAG=0
if [[ $(diff systemd/cubesatsim.service /etc/systemd/system/cubesatsim.service) ]]; then
echo "changed cubesatsim.service"
echo "changed cubesatsim.service."
sudo cp /home/pi/CubeSatSim/systemd/cubesatsim.service /etc/systemd/system/cubesatsim.service
FLAG=1
else
echo "no changes to cubesatsim.service"
echo "no changes to cubesatsim.service."
fi
if [[ $(diff systemd/rpitx.service /etc/systemd/system/rpitx.service) ]]; then
echo "changed rpitx.service"
echo "changed rpitx.service."
sudo cp /home/pi/CubeSatSim/systemd/rpitx.service /etc/systemd/system/rpitx.service
FLAG=1
else
echo "no changes to rpitx.service"
echo "no changes to rpitx.service."
fi
FILE=/home/pi/CubeSatSim/sstv_image_1_320_x_256.jpg
if [ ! -f "$FILE" ]; then
echo "Copying SSTV image 1"
echo "Copying SSTV image 1."
cp /home/pi/CubeSatSim/sstv/sstv_image_1_320_x_256.jpg /home/pi/CubeSatSim/sstv_image_1_320_x_256.jpg
fi
FILE=/home/pi/CubeSatSim/sstv_image_2_320_x_256.jpg
if [ ! -f "$FILE" ]; then
echo "Copying SSTV image 2"
echo "Copying SSTV image 2."
cp /home/pi/CubeSatSim/sstv/sstv_image_2_320_x_256.jpg /home/pi/CubeSatSim/sstv_image_2_320_x_256.jpg
fi
@ -72,7 +72,7 @@ else
echo "systemctl restart cubesatsim"
sudo systemctl restart cubesatsim
else
echo "nothing to do"
echo "nothing to do."
fi
fi
@ -99,13 +99,13 @@ if [ ! -d "/home/pi/PiSSTVpp" ]; then
FILE=/home/pi/CubeSatSim/sstv_image_1_320_x_256.jpg
if [ ! -f "$FILE" ]; then
echo "Copying SSTV image 1"
echo "Copying SSTV image 1."
cp /home/pi/CubeSatSim/sstv/sstv_image_1_320_x_256.jpg /home/pi/CubeSatSim/sstv_image_1_320_x_256.jpg
fi
FILE=/home/pi/CubeSatSim/sstv_image_2_320_x_256.jpg
if [ ! -f "$FILE" ]; then
echo "Copying SSTV image 2"
echo "Copying SSTV image 2."
cp /home/pi/CubeSatSim/sstv/sstv_image_2_320_x_256.jpg /home/pi/CubeSatSim/sstv_image_2_320_x_256.jpg
fi
@ -117,7 +117,9 @@ git pull > .updated_p
grep 'changed' /home/pi/pi-power-button/.updated_p
if [[ $(grep 'changed' /home/pi/pi-power-button/.updated_p) ]]; then
echo "reinstalling pi-power-button"
echo "updating pi-power-button."
script/install
echo "You need to reboot to complete this update. Reboot now (y/n)?"
@ -135,5 +137,7 @@ git pull > .updated_p
fi
else
echo "nothing to do for pi-power-button"
echo "nothing to do for pi-power-button."
fi
echo "CubeSatSim update complete."

Loading…
Cancel
Save

Powered by TurnKey Linux.