config don't prompt -o

pull/327/head
Alan Johnston 1 year ago
parent 4244d2a3d7
commit 151b4e6121

@ -1134,9 +1134,11 @@ elif [ "$1" = "-o" ]; then
FILE=/home/pi/CubeSatSim/beacon_off FILE=/home/pi/CubeSatSim/beacon_off
if [ -f "$FILE" ]; then if [ -f "$FILE" ]; then
echo "Transmit beacon telemetry is off" echo "Transmit beacon telemetry is off"
echo # echo
echo "Do you want to turn beacon telemetry ON (y/n) " # echo "Do you want to turn beacon telemetry ON (y/n) "
read reset # read reset
reset="y"
echo echo
if [ "$reset" = "y" ] || [ "$reset" = "yes" ] ; then if [ "$reset" = "y" ] || [ "$reset" = "yes" ] ; then
@ -1150,9 +1152,10 @@ elif [ "$1" = "-o" ]; then
else else
echo "Transmit beacon telemetry is on" echo "Transmit beacon telemetry is on"
echo # echo
echo "Do you want to turn beacon telemetry OFF (y/n) " # echo "Do you want to turn beacon telemetry OFF (y/n) "
read reset # read reset
reset="y"
echo echo
if [ "$reset" = "y" ] || [ "$reset" = "yes" ] ; then if [ "$reset" = "y" ] || [ "$reset" = "yes" ] ; then

Loading…
Cancel
Save

Powered by TurnKey Linux.