mirror of
https://huihui.cat/mirrors/MikroTikPatch.git
synced 2025-12-10 03:24:37 +01:00
Update patch.py
Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
parent
e2debac366
commit
f55fba6699
1 changed files with 2 additions and 1 deletions
3
patch.py
3
patch.py
|
|
@ -329,8 +329,9 @@ def patch_squashfs(path,key_dict):
|
|||
patch_loader(file)
|
||||
continue
|
||||
if _file =='BOOTX64.EFI':
|
||||
print(f'patch {file} ...')
|
||||
data = open(file,'rb').read()
|
||||
data = patch_kernel(data)
|
||||
data = patch_kernel(data,key_dict)
|
||||
open(file,'wb').write(data)
|
||||
continue
|
||||
data = open(file,'rb').read()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue