Update config reboot for battery_saver change

beta-v1.3.1.1-hab-3
Alan Johnston 2 years ago committed by GitHub
parent df072962c3
commit 2ad4952dd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -64,7 +64,7 @@ if [ "$1" = "" ]; then
if [ -f "$FILE" ]; then if [ -f "$FILE" ]; then
echo "Battery saver mode is ON" echo "Battery saver mode is ON"
else else
echo "Battery saver is OFF" echo "Battery saver mode is OFF"
fi fi
echo echo
@ -98,9 +98,10 @@ elif [ "$1" = "-a" ]; then
# sudo sed -i ':a;N;$!ba;s/\nforce_turbo=1//g' /boot/config.txt # sudo sed -i ':a;N;$!ba;s/\nforce_turbo=1//g' /boot/config.txt
fi fi
# echo "rebooting" echo "rebooting"
# sudo reboot now sudo systemctl stop rpitx
sudo systemctl restart cubesatsim sudo reboot now
# sudo systemctl restart cubesatsim
exit exit
elif [ "$1" = "-m" ]; then elif [ "$1" = "-m" ]; then
@ -514,8 +515,9 @@ elif [ "$1" = "-B" ]; then
set -- $value set -- $value
if [ "$1" = "a" ] || [ "$1" = "s" ] || [ "$1" = "m" ] ; then if [ "$1" = "a" ] || [ "$1" = "s" ] || [ "$1" = "m" ] ; then
echo "restarting" echo "rebooting"
sudo systemctl restart cubesatsim # sudo systemctl restart cubesatsim
sudo reboot now
fi fi
elif [ "$1" = "-q" ]; then elif [ "$1" = "-q" ]; then

Loading…
Cancel
Save

Powered by TurnKey Linux.