Update config don't restart command if in mode n

send-commands
Alan Johnston 2 weeks ago committed by GitHub
parent 6b8e1fc7c6
commit 2d2a95baa4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1245,10 +1245,13 @@ elif [ "$1" = "-A" ]; then
echo
done
sudo systemctl restart command
if [ "$1" != "n" ]; then
value=`cat /home/pi/CubeSatSim/.mode`
echo "$value" > /dev/null
set -- $value
if [ "$1" != "n" ] ; then
sudo systemctl restart command
reboot=1
fi

Loading…
Cancel
Save

Powered by TurnKey Linux.