Update config only restart on -B if a/s/m mode

beta-v1.3.2-battery-saver-4
Alan Johnston 2 years ago committed by GitHub
parent 1cf9f767c9
commit 85e9018585
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -479,8 +479,14 @@ elif [ "$1" = "-B" ]; then
# if ["$mode" = "1"] ; then sudo systemctl restart rpitx # if ["$mode" = "1"] ; then sudo systemctl restart rpitx
fi fi
sudo systemctl restart cubesatsim value=`cat /home/pi/CubeSatSim/.mode`
echo "$value" > /dev/null
set -- $value
if [ "$1" = "a" ] || [ "$1" = "s" ] || [ "$1" = "m" ] ; then
echo "restarting"
sudo systemctl restart cubesatsim
fi
fi fi
# sudo systemctl restart cubesatsim # sudo systemctl restart cubesatsim

Loading…
Cancel
Save

Powered by TurnKey Linux.