From 7fcf1b8716976a2cfa6b7ed4004d7693fa51130c Mon Sep 17 00:00:00 2001 From: shivamking05675 <38485042+shivamking05675@users.noreply.github.com> Date: Wed, 27 Sep 2023 14:21:50 +0530 Subject: [PATCH] Update install.sh The need for these changes is required because sometimes users might also type 'yes,' and in such cases, the condition in your code will be false since currently, the condition only checks for 'y' to be true (Line Number 40). Additionally, I have added code comments for better understanding. That's the reason for making these minor changes in your code. Could you please approve my small contribution? --- install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index 3dc8e65..1579630 100755 --- a/install.sh +++ b/install.sh @@ -41,13 +41,13 @@ if [ "$CONT" = "y" ] || [ "$CONT" = "yes" ]; then echo "Setting GPU to 250MHz to ensure stability" # Add or update the gpu_freq line in /boot/config.txt - #LINE='gpu_freq=250' - #FILE='/boot/config.txt' - #grep -qF "$LINE" "$FILE" || echo "$LINE" | sudo tee --append "$FILE" + LINE='gpu_freq=250' + FILE='/boot/config.txt' + grep -qF "$LINE" "$FILE" || echo "$LINE" | sudo tee --append "$FILE" # Add or update the force_turbo line in /boot/config.txt - #LINE='force_turbo=1' - #grep -qF "$LINE" "$FILE" || echo "$LINE" | sudo tee --append "$FILE" + LINE='force_turbo=1' + grep -qF "$LINE" "$FILE" || echo "$LINE" | sudo tee --append "$FILE" echo "Installation completed!" else