mirror of
https://github.com/elseif/MikroTikPatch.git
synced 2026-09-06 07:20:59 +00:00
2
patch.py
2
patch.py
@@ -277,6 +277,8 @@ def patch_kernel(data:bytes,key_dict):
|
|||||||
def patch_squashfs(path,key_dict):
|
def patch_squashfs(path,key_dict):
|
||||||
for root, dirs, files in os.walk(path):
|
for root, dirs, files in os.walk(path):
|
||||||
for file in files:
|
for file in files:
|
||||||
|
if file =='loader':
|
||||||
|
continue
|
||||||
file = os.path.join(root,file)
|
file = os.path.join(root,file)
|
||||||
if os.path.isfile(file):
|
if os.path.isfile(file):
|
||||||
data = open(file,'rb').read()
|
data = open(file,'rb').read()
|
||||||
|
|||||||
Reference in New Issue
Block a user