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
7fe82f7498
commit
e2debac366
1 changed files with 5 additions and 0 deletions
5
patch.py
5
patch.py
|
|
@ -328,6 +328,11 @@ def patch_squashfs(path,key_dict):
|
|||
if _file =='loader':
|
||||
patch_loader(file)
|
||||
continue
|
||||
if _file =='BOOTX64.EFI':
|
||||
data = open(file,'rb').read()
|
||||
data = patch_kernel(data)
|
||||
open(file,'wb').write(data)
|
||||
continue
|
||||
data = open(file,'rb').read()
|
||||
for old_public_key,new_public_key in key_dict.items():
|
||||
_data = replace_key(old_public_key,new_public_key,data,file)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue