|
|
|
@ -82,21 +82,21 @@ echo -e "\ninstallation script for CubeSatSim v2.2\n"
|
|
|
|
if [[ $(grep 'dtoverlay=pwm,pin=18,func=2' /boot/config.txt) ]]; then
|
|
|
|
if [[ $(grep 'dtoverlay=pwm,pin=18,func=2' /boot/config.txt) ]]; then
|
|
|
|
echo "dtoverlay=pwm,pin=18,func=2 already in /boot/config.txt"
|
|
|
|
echo "dtoverlay=pwm,pin=18,func=2 already in /boot/config.txt"
|
|
|
|
else
|
|
|
|
else
|
|
|
|
echo "adding to /boot/config.txt"
|
|
|
|
echo "adding overlay=pwm,pin=18,func=2 to /boot/config.txt"
|
|
|
|
sudo sh -c 'echo "\ndtoverlay=pwm,pin=18,func=2" >> /boot/config.txt'
|
|
|
|
sudo sh -c 'echo "\ndtoverlay=pwm,pin=18,func=2" >> /boot/config.txt'
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [[ $(grep 'disable_splash=1 ' /boot/config.txt) ]]; then
|
|
|
|
if [[ $(grep 'disable_splash=1 ' /boot/config.txt) ]]; then
|
|
|
|
echo "disable_splash=1 already in /boot/config.txt"
|
|
|
|
echo "disable_splash=1 already in /boot/config.txt"
|
|
|
|
else
|
|
|
|
else
|
|
|
|
echo "adding to /boot/config.txt"
|
|
|
|
echo "adding disable_splash=1 to /boot/config.txt"
|
|
|
|
sudo sh -c 'echo "\ndisable_splash=1" >> /boot/config.txt'
|
|
|
|
sudo sh -c 'echo "\ndisable_splash=1" >> /boot/config.txt'
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [[ $(grep 'boot_delay=0' /boot/config.txt) ]]; then
|
|
|
|
if [[ $(grep 'boot_delay=0' /boot/config.txt) ]]; then
|
|
|
|
echo "boot_delay=0 already in /boot/config.txt"
|
|
|
|
echo "boot_delay=0 already in /boot/config.txt"
|
|
|
|
else
|
|
|
|
else
|
|
|
|
echo "adding to /boot/config.txt"
|
|
|
|
echo "adding boot_delay=0 to /boot/config.txt"
|
|
|
|
sudo sh -c 'echo "\nboot_delay=0" >> /boot/config.txt'
|
|
|
|
sudo sh -c 'echo "\nboot_delay=0" >> /boot/config.txt'
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|