|
|
|
@ -20,22 +20,6 @@ sudo sed -i 's/more information/more\ninformation/g' /etc/motd
|
|
|
|
|
|
|
|
|
|
|
|
sudo sed -i 's/update to/update\nto/g' /etc/motd
|
|
|
|
sudo sed -i 's/update to/update\nto/g' /etc/motd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cd /home/pi/pi-power-button
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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"
|
|
|
|
|
|
|
|
script/install
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
echo "nothing to do for pi-power-button"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cd /home/pi/CubeSatSim
|
|
|
|
cd /home/pi/CubeSatSim
|
|
|
|
|
|
|
|
|
|
|
|
git pull > .updated
|
|
|
|
git pull > .updated
|
|
|
|
@ -125,7 +109,18 @@ if [ ! -d "/home/pi/PiSSTVpp" ]; then
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
echo "You need to reboot to complete the installation. Reboot now (y/n)?"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cd /home/pi/pi-power-button
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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"
|
|
|
|
|
|
|
|
script/install
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "You need to reboot to complete this update. Reboot now (y/n)?"
|
|
|
|
|
|
|
|
|
|
|
|
read -r ANS
|
|
|
|
read -r ANS
|
|
|
|
|
|
|
|
|
|
|
|
@ -139,5 +134,6 @@ if [ ! -d "/home/pi/PiSSTVpp" ]; then
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
echo "nothing to do for pi-power-button"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|