mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
Merge pull request #10068 from vpeter4/init_md5
init: update md5 files on /flash
This commit is contained in:
commit
74d5a60566
@ -911,12 +911,16 @@ check_update() {
|
||||
|
||||
# all ok, update
|
||||
if [ -b "/$IMAGE_KERNEL" ]; then
|
||||
update_partition "Kernel" "$UPDATE_KERNEL" "/$IMAGE_KERNEL"
|
||||
update_partition "Kernel " "${UPDATE_KERNEL}" "/${IMAGE_KERNEL}"
|
||||
update_partition "Kernel md5" "${UPDATE_KERNEL}.md5" "/${IMAGE_KERNEL}.md5"
|
||||
else
|
||||
update_file "Kernel" "$UPDATE_KERNEL" "/flash/$IMAGE_KERNEL"
|
||||
update_file "Kernel " "${UPDATE_KERNEL}" "/flash/${IMAGE_KERNEL}"
|
||||
update_file "Kernel md5" "${UPDATE_KERNEL}.md5" "/flash/${IMAGE_KERNEL}.md5"
|
||||
fi
|
||||
|
||||
umount /sysroot
|
||||
update_file "System" "$UPDATE_SYSTEM" "/flash/$IMAGE_SYSTEM"
|
||||
update_file "System " "${UPDATE_SYSTEM}" "/flash/${IMAGE_SYSTEM}"
|
||||
update_file "System md5" "${UPDATE_KERNEL}.md5" "/flash/${IMAGE_SYSTEM}.md5"
|
||||
update_bootloader
|
||||
do_cleanup
|
||||
do_reboot
|
||||
|
Loading…
x
Reference in New Issue
Block a user