Merge pull request #23 from makermelissa/fix-install-config
Fix /boot/config.txt for bookworm installs
This commit is contained in:
commit
005fc23648
2 changed files with 7 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue