Update install add camera_auto_detect

master-b
Alan Johnston 2 months ago committed by GitHub
parent bf2a758a61
commit 821b68ced4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -296,6 +296,13 @@ sudo raspi-config nonint do_legacy 0
sudo sh -c 'echo "\nboot_delay=0" >> /boot/firmware/config.txt'
fi
if [[ $(grep 'camera_auto_detect=1' /boot/firmware/config.txt) ]]; then
echo "camera_auto_detect=1 already in /boot/firmware/config.txt"
else
echo "adding camera_auto_detect=1 to /boot/firmware/config.txt"
sudo sh -c 'echo "\ncamera_auto_detect=1" >> /boot/firmware/config.txt'
fi
if ! grep -q force_turbo=1 /boot/firmware/config.txt ; then sudo sh -c 'echo "force_turbo=1" >> /boot/firmware/config.txt'; fi
sudo sh -c 'echo "\n" >> /boot/firmware/config.txt'

Loading…
Cancel
Save

Powered by TurnKey Linux.