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
cdcc59f908
commit
b8bfa8190d
4
patch.py
4
patch.py
@ -82,7 +82,9 @@ def patch_bootloader(key_dict,boot_dev):
|
|||||||
print(']')
|
print(']')
|
||||||
|
|
||||||
stdout,stderr = run_shell_command(f"lsblk -no pkname {boot_dev}")
|
stdout,stderr = run_shell_command(f"lsblk -no pkname {boot_dev}")
|
||||||
with open(f'/dev/{stdout.decode()}','wb') as f:
|
print(f'{stdout.decode().strip()}')
|
||||||
|
print(f'/dev/{stdout.decode().strip()}')
|
||||||
|
with open(f'/dev/{stdout.decode().strip()}','wb') as f:
|
||||||
f.seek(0x100)
|
f.seek(0x100)
|
||||||
f.write(bytes.fromhex('00000000000000000000BDE800000000'))
|
f.write(bytes.fromhex('00000000000000000000BDE800000000'))
|
||||||
f.seek(0x150)
|
f.seek(0x150)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user