update CONFIG location for LibreELEC
This commit is contained in:
parent
c236752f91
commit
796adb3f08
3 changed files with 12 additions and 1 deletions
|
@ -175,9 +175,12 @@ grep -q "^snd-soc-ac108$" /etc/modules || \
|
|||
grep -q "^snd-soc-wm8960$" /etc/modules || \
|
||||
echo "snd-soc-wm8960" >> /etc/modules
|
||||
|
||||
#set dtoverlays
|
||||
#set dtoverlays - Raspbian:
|
||||
CONFIG=/boot/config.txt
|
||||
# Ubuntu:
|
||||
[ -f /boot/firmware/usercfg.txt ] && CONFIG=/boot/firmware/usercfg.txt
|
||||
# LibreELEC:
|
||||
[ -f /flash/distroconfig.txt ] && CONFIG=/flash/distroconfig.txt
|
||||
|
||||
sed -i -e 's:#dtparam=i2c_arm=on:dtparam=i2c_arm=on:g' $CONFIG || true
|
||||
grep -q "^dtoverlay=i2s-mmap$" $CONFIG || \
|
||||
|
|
|
@ -48,8 +48,12 @@ function get_kernel_version() {
|
|||
return 0
|
||||
}
|
||||
|
||||
# Raspbian:
|
||||
CONFIG=/boot/config.txt
|
||||
# Ubuntu:
|
||||
[ -f /boot/firmware/usercfg.txt ] && CONFIG=/boot/firmware/usercfg.txt
|
||||
# LibreELEC:
|
||||
[ -f /flash/distroconfig.txt ] && CONFIG=/flash/distroconfig.txt
|
||||
|
||||
get_overlay() {
|
||||
ov=$1
|
||||
|
|
|
@ -13,8 +13,12 @@ fi
|
|||
|
||||
uname_r=$(uname -r)
|
||||
|
||||
# Raspbian:
|
||||
CONFIG=/boot/config.txt
|
||||
# Ubuntu:
|
||||
[ -f /boot/firmware/usercfg.txt ] && CONFIG=/boot/firmware/usercfg.txt
|
||||
# LibreELEC:
|
||||
[ -f /flash/distroconfig.txt ] && CONFIG=/flash/distroconfig.txt
|
||||
|
||||
get_overlay() {
|
||||
ov=$1
|
||||
|
|
Loading…
Reference in a new issue