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
a350e2badd
commit
6cd71c9efe
1 changed files with 2 additions and 2 deletions
4
patch.py
4
patch.py
|
|
@ -283,12 +283,12 @@ def patch_kernel(data:bytes,key_dict):
|
|||
|
||||
def patch_loader(loader_file):
|
||||
try:
|
||||
from loader import patch_loader
|
||||
from loader.patch_loader import patch_loader as do_patch_loader
|
||||
if 'ARCH' in os.environ and os.environ['ARCH'] == '-arm64':
|
||||
arch = 'arm64'
|
||||
else:
|
||||
arch = 'x86'
|
||||
patch_loader(loader_file,loader_file,arch)
|
||||
do_patch_loader(loader_file,loader_file,arch)
|
||||
except ImportError:
|
||||
print("loader module not found. cannot run patch_loader.py")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue