|
|
|
|
@ -741,6 +741,20 @@ else
|
|
|
|
|
FLAG=1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
FILE=/etc/systemd/system/pushbutton.service
|
|
|
|
|
if [ -f "$FILE" ]; then
|
|
|
|
|
if [[ $(diff /home/pi/CubeSatSim/systemd/pushbutton.service /etc/systemd/system/pushbutton.service) ]]; then
|
|
|
|
|
echo "changed pushbutton.service."
|
|
|
|
|
sudo cp /home/pi/CubeSatSim/systemd/pushbutton.service /etc/systemd/system/pushbutton.service
|
|
|
|
|
FLAG=1
|
|
|
|
|
else
|
|
|
|
|
echo "no change to pushbutton.service."
|
|
|
|
|
fi
|
|
|
|
|
else
|
|
|
|
|
echo "creating pushbutton.service."
|
|
|
|
|
sudo cp /home/pi/CubeSatSim/systemd/pushbutton.service /etc/systemd/system/pushbutton.service
|
|
|
|
|
FLAG=1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
FILE=/etc/asound.conf
|
|
|
|
|
if [ -f "$FILE" ]; then
|
|
|
|
|
|