mirror of
https://github.com/elseif/MikroTikPatch
synced 2026-07-17 10:39:40 +00:00
modified: patch.py
This commit is contained in:
parent
2551551828
commit
fd50885bf4
4
patch.py
4
patch.py
@ -283,9 +283,7 @@ def patch_kernel(data:bytes,key_dict):
|
|||||||
|
|
||||||
def patch_loader(loader_file):
|
def patch_loader(loader_file):
|
||||||
try:
|
try:
|
||||||
import sys
|
print("loader patch exists:", os.path.exists('loader/patch_loader.py'))
|
||||||
print("cwd:", os.getcwd())
|
|
||||||
print("sys.path:", sys.path)
|
|
||||||
from loader.patch_loader import patch_loader as do_patch_loader
|
from loader.patch_loader import patch_loader as do_patch_loader
|
||||||
arch = os.getenv('ARCH','x86')
|
arch = os.getenv('ARCH','x86')
|
||||||
if arch != 'x86':
|
if arch != 'x86':
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user