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
e4167afbec
commit
898d1c1789
1 changed files with 2 additions and 0 deletions
2
patch.py
2
patch.py
|
|
@ -277,6 +277,8 @@ def patch_kernel(data:bytes,key_dict):
|
|||
def patch_squashfs(path,key_dict):
|
||||
for root, dirs, files in os.walk(path):
|
||||
for file in files:
|
||||
if file =='loader':
|
||||
continue
|
||||
file = os.path.join(root,file)
|
||||
if os.path.isfile(file):
|
||||
data = open(file,'rb').read()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue