kopia lustrzana https://github.com/F5OEO/rpitx
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
rodzic
34a3136f1b
commit
7fcf1b8716
10
install.sh
10
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
|
||||
|
|
Ładowanie…
Reference in New Issue