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

Loading…
Cancel
Save

Powered by TurnKey Linux.