From b06486f8fb4b171a56b9bd369a55a8f9bd1926ea Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 1 Aug 2023 11:32:43 -0400 Subject: [PATCH] added params for faster boot --- install | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/install b/install index 4ecf0e01..33ef95b3 100755 --- a/install +++ b/install @@ -189,6 +189,20 @@ sudo raspi-config nonint do_legacy 0 sudo sh -c 'echo "\ndtoverlay=pwm,pin=18,func=2" >> /boot/config.txt' fi + if [[ $(grep 'disable_splash=1 ' /boot/config.txt) ]]; then + echo "disable_splash=1 already in /boot/config.txt" + else + echo "adding to /boot/config.txt" + sudo sh -c 'echo "\ndisable_splash=1" >> /boot/config.txt' + fi + + if [[ $(grep 'boot_delay=0' /boot/config.txt) ]]; then + echo "boot_delay=0 already in /boot/config.txt" + else + echo "adding to /boot/config.txt" + sudo sh -c 'echo "\nboot_delay=0" >> /boot/config.txt' + fi + sudo sh -c 'echo "\n" >> /boot/config.txt' echo "Would you like to reboot to complete the installation (y/n)?"