Merge pull request #23 from makermelissa/fix-install-config

Fix /boot/config.txt for bookworm installs
This commit is contained in:
HinTak 2024-01-10 15:53:37 +00:00 committed by GitHub
commit 005fc23648
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View file

@ -181,6 +181,7 @@ grep -q "^snd-soc-wm8960$" /etc/modules || \
#set dtoverlays
CONFIG=/boot/config.txt
[ -f /boot/firmware/config.txt ] && CONFIG=/boot/firmware/config.txt
[ -f /boot/firmware/usercfg.txt ] && CONFIG=/boot/firmware/usercfg.txt
sed -i -e 's:#dtparam=i2c_arm=on:dtparam=i2c_arm=on:g' $CONFIG || true

View file

@ -14,6 +14,7 @@ fi
uname_r=$(uname -r)
CONFIG=/boot/config.txt
[ -f /boot/firmware/config.txt ] && CONFIG=/boot/firmware/config.txt
[ -f /boot/firmware/usercfg.txt ] && CONFIG=/boot/firmware/usercfg.txt
get_overlay() {