Update config -H param

master-bo
Alan Johnston 2 months ago committed by GitHub
parent ff22275cf7
commit 99c8419721
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1303,14 +1303,14 @@ elif [ "$1" = "-o" ]; then
elif [ "$1" = "-H" ]; then
# echo
echo "Editing the Balloon mode setting in"
echo "the configuration file for CubeSatSim"
echo "Setting Balloon mode"
echo
value=`cat /home/pi/CubeSatSim/sim.cfg`
echo "$value" > /dev/null
set -- $value
if [ -z "$param2" ] ; then
if [ "$9" = "yes" ] || [ "$9" = "y" ]; then
echo "Balloon mode is ON"
else
@ -1324,7 +1324,9 @@ elif [ "$1" = "-H" ]; then
echo "Do you want Balloon mode ON (y/n) "
read hab
echo
else
hab="$param2"
fi
if [ "$hab" = "y" ] || [ "$hab" = "yes" ] ; then
hab="yes"
echo "Balloon mode is ON"

Loading…
Cancel
Save

Powered by TurnKey Linux.