Update config only rm battery saver if changed

beta-cc-safe
Alan Johnston 2 years ago committed by GitHub
parent 2fdca3524a
commit 96fe99bb42
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -512,8 +512,7 @@ elif [ "$1" = "-B" ]; then
# if ["$mode" = "0"] ; then sudo systemctl restart rpitx
else
echo "Safe Mode is OFF. Battery saver mode is now OFF"
sudo rm /home/pi/CubeSatSim/battery_saver
# if ["$mode" = "1"] ; then sudo systemctl restart rpitx
if ["$mode" = "1"] ; then sudo rm /home/pi/CubeSatSim/battery_saver
fi
value=`cat /home/pi/CubeSatSim/.mode`

Loading…
Cancel
Save

Powered by TurnKey Linux.