reversed changes from dev

pull/111/head
alanbjohnston 5 years ago committed by GitHub
parent 6b05336b5b
commit f1cdd20719
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -19,42 +19,24 @@ 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 "copying cubesatsim.service"
sudo cp /home/pi/CubeSatSim/systemd/cubesatsim.service /etc/systemd/system/cubesatsim.service sudo cp 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 "copying rpitx.service"
sudo cp /home/pi/CubeSatSim/systemd/rpitx.service /etc/systemd/system/rpitx.service sudo cp 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
if [ ! -f "$FILE" ]; then
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"
cp /home/pi/CubeSatSim/sstv/sstv_image_2_320_x_256.jpg /home/pi/CubeSatSim/sstv_image_2_320_x_256.jpg
fi
grep 'update' /home/pi/CubeSatSim/.updated
if [[ $(grep 'update' /home/pi/CubeSatSim/.updated) ]]; then
echo "update script updated"
/home/pi/CubeSatSim/update
fi
if [ $FLAG -eq 1 ]; then if [ $FLAG -eq 1 ]; then
echo "systemctl daemon-reload and restart" echo "systemctl daemon-reload and restart"
sudo systemctl daemon-reload sudo systemctl daemon-reload
sudo systemctl restart cubesatsim sudo systemctl restart cubesatsim
else else
grep 'changed' /home/pi/CubeSatSim/.updated grep 'changed' /home/pi/CubeSatSim/.updated

Loading…
Cancel
Save

Powered by TurnKey Linux.