mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
bcm2835-bootloader: support multiple distroconfig files in update/release
Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
@@ -47,10 +47,12 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
# Add distro config file
|
||||
if [ -f $SYSTEM_ROOT/usr/share/bootloader/distroconfig.txt ]; then
|
||||
cp -p $SYSTEM_ROOT/usr/share/bootloader/distroconfig.txt $BOOT_ROOT
|
||||
fi
|
||||
# Add distro config files
|
||||
for distro in "$SYSTEM_ROOT/usr/share/bootloader/distroconfig"*.txt ; do
|
||||
if [ -f "${distro}" ]; then
|
||||
cp -p "${distro}" $BOOT_ROOT
|
||||
fi
|
||||
done
|
||||
|
||||
# mount $BOOT_ROOT r/o
|
||||
sync
|
||||
|
||||
@@ -15,6 +15,8 @@ mkdir -p $RELEASE_DIR/3rdparty/bootloader
|
||||
if [ -f $INSTALL/usr/share/bootloader/config.txt ]; then
|
||||
cp -PR $INSTALL/usr/share/bootloader/config.txt $RELEASE_DIR/3rdparty/bootloader/
|
||||
fi
|
||||
if [ -f $INSTALL/usr/share/bootloader/distroconfig.txt ]; then
|
||||
cp -PR $INSTALL/usr/share/bootloader/distroconfig.txt $RELEASE_DIR/3rdparty/bootloader/
|
||||
for distro in "$INSTALL/usr/share/bootloader/distroconfig"*.txt ; do
|
||||
if [ -f "${distro}" ]; then
|
||||
cp -PR "${distro}" $RELEASE_DIR/3rdparty/bootloader/
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user