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?
pull/306/head
shivamking05675 2023-09-27 14:21:50 +05:30 zatwierdzone przez GitHub
rodzic 34a3136f1b
commit 7fcf1b8716
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -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