|
|
|
@ -2,6 +2,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
# echo $1
|
|
|
|
# echo $1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$2" = "-n" ]; then
|
|
|
|
|
|
|
|
norestart=1
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
norestart=0
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$1" = "" ]; then
|
|
|
|
if [ "$1" = "" ]; then
|
|
|
|
value=`cat /home/pi/CubeSatSim/.mode`
|
|
|
|
value=`cat /home/pi/CubeSatSim/.mode`
|
|
|
|
echo "$value" > /dev/null
|
|
|
|
echo "$value" > /dev/null
|
|
|
|
@ -164,7 +170,7 @@ elif [ "$1" = "-c" ]; then
|
|
|
|
echo $callsign $2 $3 $4 $5
|
|
|
|
echo $callsign $2 $3 $4 $5
|
|
|
|
echo $callsign $2 $3 $4 $5 > /home/pi/CubeSatSim/sim.cfg
|
|
|
|
echo $callsign $2 $3 $4 $5 > /home/pi/CubeSatSim/sim.cfg
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$2" = "-n" ]; then
|
|
|
|
if [ "$norestart" = "1" ]; then
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
else
|
|
|
|
else
|
|
|
|
echo "Restarting CubeSatSim with new configuraation file"
|
|
|
|
echo "Restarting CubeSatSim with new configuraation file"
|
|
|
|
@ -207,7 +213,7 @@ elif [ "$1" = "-c" ]; then
|
|
|
|
echo $callsign $2 $3 $4 $5 > /home/pi/CubeSatSim/sim.cfg
|
|
|
|
echo $callsign $2 $3 $4 $5 > /home/pi/CubeSatSim/sim.cfg
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$2" = "-n" ]; then
|
|
|
|
if [ "$norestart" = "1" ]; then
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
else
|
|
|
|
else
|
|
|
|
echo "Restarting CubeSatSim with new configuraation file"
|
|
|
|
echo "Restarting CubeSatSim with new configuraation file"
|
|
|
|
|