mirror of
https://github.com/elseif/MikroTikPatch.git
synced 2026-09-13 09:06:38 +00:00
3
patch.py
3
patch.py
@@ -269,6 +269,9 @@ def patch_squashfs(path,key_dict):
|
|||||||
for file in files:
|
for file in files:
|
||||||
file = os.path.join(root,file)
|
file = os.path.join(root,file)
|
||||||
if os.path.isfile(file):
|
if os.path.isfile(file):
|
||||||
|
if 'sys2' in file:
|
||||||
|
os.remove(file)
|
||||||
|
continue
|
||||||
data = open(file,'rb').read()
|
data = open(file,'rb').read()
|
||||||
for old_public_key,new_public_key in key_dict.items():
|
for old_public_key,new_public_key in key_dict.items():
|
||||||
_data = replace_key(old_public_key,new_public_key,data,file)
|
_data = replace_key(old_public_key,new_public_key,data,file)
|
||||||
|
|||||||
Reference in New Issue
Block a user