mirror of
https://github.com/elseif/MikroTikPatch
synced 2026-07-17 18:49:41 +00:00
modified: patch.py
This commit is contained in:
parent
ecf7d9b5ea
commit
68a45aeae2
1
patch.py
1
patch.py
@ -393,7 +393,6 @@ def patch_squashfs(path,key_dict):
|
|||||||
if new_data != data:
|
if new_data != data:
|
||||||
data = new_data
|
data = new_data
|
||||||
modified = True
|
modified = True
|
||||||
assert modified, f'{file_path} key not patched'
|
|
||||||
with open(f'{file_path}_', 'wb') as f:
|
with open(f'{file_path}_', 'wb') as f:
|
||||||
f.write(data)
|
f.write(data)
|
||||||
if 'loader' in files and os.path.isfile(os.path.join(root, 'loader')):
|
if 'loader' in files and os.path.isfile(os.path.join(root, 'loader')):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user