mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 06:06:43 +00:00
Add distroconfig.txt to enable distribution specific config.txt overrides,
without compromising custom edits in the config.txt file.
This commit is contained in:
parent
1e89038061
commit
311d20b12b
@ -108,3 +108,10 @@
|
|||||||
# all values below this line were inserted from config.txt.bk (your old config)
|
# all values below this line were inserted from config.txt.bk (your old config)
|
||||||
# and can be merged with the above values
|
# and can be merged with the above values
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# Include distribution specific config file if it exists.
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
[all]
|
||||||
|
include distroconfig.txt
|
||||||
|
@ -49,6 +49,9 @@ makeinstall_target() {
|
|||||||
|
|
||||||
cp -PRv $PKG_DIR/scripts/update.sh $INSTALL/usr/share/bootloader
|
cp -PRv $PKG_DIR/scripts/update.sh $INSTALL/usr/share/bootloader
|
||||||
|
|
||||||
|
if [ -f $DISTRO_DIR/$DISTRO/config/distroconfig.txt ]; then
|
||||||
|
cp -PRv $DISTRO_DIR/$DISTRO/config/distroconfig.txt $INSTALL/usr/share/bootloader
|
||||||
|
fi
|
||||||
if [ -f $DISTRO_DIR/$DISTRO/config/config.txt ]; then
|
if [ -f $DISTRO_DIR/$DISTRO/config/config.txt ]; then
|
||||||
cp -PRv $DISTRO_DIR/$DISTRO/config/config.txt $INSTALL/usr/share/bootloader
|
cp -PRv $DISTRO_DIR/$DISTRO/config/config.txt $INSTALL/usr/share/bootloader
|
||||||
else
|
else
|
||||||
|
@ -53,6 +53,9 @@
|
|||||||
# sed -e "s,gpu_mem=100,gpu_mem=128,g" -i $BOOT_ROOT/config.txt
|
# sed -e "s,gpu_mem=100,gpu_mem=128,g" -i $BOOT_ROOT/config.txt
|
||||||
# sed -e "s,gpu_mem_256=100,# gpu_mem_256=128,g" -i $BOOT_ROOT/config.txt
|
# sed -e "s,gpu_mem_256=100,# gpu_mem_256=128,g" -i $BOOT_ROOT/config.txt
|
||||||
# sed -e "s,gpu_mem_512=128,# gpu_mem_512=128,g" -i $BOOT_ROOT/config.txt
|
# sed -e "s,gpu_mem_512=128,# gpu_mem_512=128,g" -i $BOOT_ROOT/config.txt
|
||||||
|
# Add distribution specific extra configuration file for the bootloader
|
||||||
|
elif [ -f $SYSTEM_ROOT/usr/share/bootloader/distroconfig.txt ]; then
|
||||||
|
cp $SYSTEM_ROOT/usr/share/bootloader/distroconfig.txt $BOOT_ROOT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# mount $BOOT_ROOT r/o
|
# mount $BOOT_ROOT r/o
|
||||||
|
Loading…
x
Reference in New Issue
Block a user