Add distroconfig.txt to enable distribution specific config.txt overrides,

without compromising custom edits in the config.txt file.
This commit is contained in:
Mark Walker 2016-06-03 11:40:42 +02:00
parent 1e89038061
commit 311d20b12b
3 changed files with 14 additions and 1 deletions

View File

@ -108,3 +108,10 @@
# all values below this line were inserted from config.txt.bk (your old config)
# and can be merged with the above values
################################################################################
################################################################################
# Include distribution specific config file if it exists.
################################################################################
[all]
include distroconfig.txt

View File

@ -49,6 +49,9 @@ makeinstall_target() {
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
cp -PRv $DISTRO_DIR/$DISTRO/config/config.txt $INSTALL/usr/share/bootloader
else

View File

@ -53,6 +53,9 @@
# 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_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
# mount $BOOT_ROOT r/o