mirror of
https://github.com/CTCaer/hekate.git
synced 2024-12-23 08:32:04 +00:00
Create update.bin if missing
This will allow l4t/Android to always use latest hekate in case of old r2p.
This commit is contained in:
parent
27b1f0e843
commit
9d1c0ce308
1 changed files with 7 additions and 0 deletions
|
@ -293,8 +293,15 @@ void auto_launch_update()
|
|||
EMC(EMC_SCRATCH0) &= ~EMC_HEKA_UPD;
|
||||
else if (sd_mount())
|
||||
{
|
||||
// Check if update.bin exists and is newer and launch it. Otherwise create it.
|
||||
if (!f_stat("bootloader/update.bin", NULL))
|
||||
launch_payload("bootloader/update.bin", true);
|
||||
else
|
||||
{
|
||||
u8 *buf = calloc(0x200, 1);
|
||||
is_ipl_updated(buf, "bootloader/update.bin", false);
|
||||
free(buf);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue