mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
projects/Amlogic: update.sh: also update boot.ini, boot-logo.bmp.gz
and u-boot
This commit is contained in:
parent
cd24679d86
commit
2a68e8caab
@ -91,3 +91,21 @@ for arg in $(cat /proc/cmdline); do
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
if [ -f $SYSTEM_ROOT/usr/share/bootloader/boot.ini ]; then
|
||||
echo "*** updating boot.ini ..."
|
||||
mount -o rw,remount $BOOT_ROOT
|
||||
cp -p $SYSTEM_ROOT/usr/share/bootloader/boot.ini $BOOT_ROOT/boot.ini
|
||||
fi
|
||||
|
||||
if [ -f $SYSTEM_ROOT/usr/share/bootloader/boot-logo.bmp.gz ]; then
|
||||
echo "*** updating boot logo ..."
|
||||
mount -o rw,remount $BOOT_ROOT
|
||||
cp -p $SYSTEM_ROOT/usr/share/bootloader/boot-logo.bmp.gz $BOOT_ROOT
|
||||
fi
|
||||
|
||||
if [ -f $SYSTEM_ROOT/usr/share/bootloader/u-boot -a ! -e /dev/system -a ! -e /dev/boot ]; then
|
||||
echo "*** updating u-boot on: $BOOT_DISK ..."
|
||||
dd if=$SYSTEM_ROOT/usr/share/bootloader/u-boot of=$BOOT_DISK conv=fsync bs=1 count=112 status=none
|
||||
dd if=$SYSTEM_ROOT/usr/share/bootloader/u-boot of=$BOOT_DISK conv=fsync bs=512 skip=1 seek=1 status=none
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user