Update config Pacsat mode "p" in .mode

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

@ -1416,11 +1416,22 @@ elif [ "$1" = "-g" ]; then
elif [ "$1" = "-G" ]; then
echo "Changing to Pacsat mode"
echo
sudo systemctl stop cubesatsim
sudo systemctl stop transmit
value=`cat /home/pi/CubeSatSim/.mode`
echo "$value" > /dev/null
set -- $value
/home/pi/CubeSatSim/pacsat.sh
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

Loading…
Cancel
Save

Powered by TurnKey Linux.