Update config .mode P is pacsat ground station

pacsat-1
Alan Johnston 1 year ago committed by GitHub
parent 2fb339fd8b
commit 7c4c344b0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1435,6 +1435,28 @@ elif [ "$1" = "-G" ]; then
restart=1
fi
elif [ "$1" = "-H" ]; then
echo "Changing to Pacsat Ground Station mode"
value=`cat /home/pi/CubeSatSim/.mode`
echo "$value" > /dev/null
set -- $value
echo "changing CubeSatSim to Pacsat mode"
sudo echo "P" > /home/pi/CubeSatSim/.mode
if [ "$1" == "f" ] || [ "$1" == "b" ] || [ "$1" == "e" ] ; then
FILE=/home/pi/CubeSatSim/battery_saver
if [ -f "$FILE" ]; then
restart=1
else
reboot=1
fi
else
restart=1
fi
elif [ "$1" = "-h" ]; then
echo "config OPTION"

Loading…
Cancel
Save

Powered by TurnKey Linux.