added .mode and sim.cfg creation

pull/109/head
alanbjohnston 5 years ago committed by GitHub
parent df96f38636
commit 97ce5785d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -28,6 +28,21 @@ git pull
make debug
FILE=/home/pi/CubeSatSim/.mode
if [ -f "$FILE" ]; then
echo "$FILE exists."
else
echo "creating $FILE"
echo "ARG1=f" >> .mode
fi
FILE=/home/pi/CubeSatSim/sim.cfg
if [ -f "$FILE" ]; then
echo "$FILE exists."
else
echo "creating $FILE"
echo $1 >> sim.cfg
fi
cd
@ -71,7 +86,8 @@ sudo cp /boot/config.txt /boot/config.txt.0
sudo cp /boot/cmdline.txt /boot/cmdline.txt.0
if [ "$1" = "u" ]; then
#if [ "$1" = "u" ]; then
#fi
sudo sed -i 's/console=serial0,115200 //g' /boot/cmdline.txt
@ -90,7 +106,6 @@ if [ "$1" = "u" ]; then
echo "adding dtoverlay=pi3-miniuart-bt to /boot/config.txt"
sudo sh -c 'echo "\ndtoverlay=pi3-miniuart-bt" >> /boot/config.txt'
fi
fi
echo "You need to reboot to complete the installation\n"

Loading…
Cancel
Save

Powered by TurnKey Linux.