mirror of
https://huihui.cat/mirrors/MikroTikPatch.git
synced 2025-12-10 03:24:37 +01:00
modified: patch.py
This commit is contained in:
parent
0b76f2feed
commit
cdcc59f908
1 changed files with 2 additions and 0 deletions
2
patch.py
2
patch.py
|
|
@ -83,6 +83,8 @@ def patch_bootloader(key_dict,boot_dev):
|
||||||
|
|
||||||
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:
|
with open(f'/dev/{stdout.decode()}','wb') as f:
|
||||||
|
f.seek(0x100)
|
||||||
|
f.write(bytes.fromhex('00000000000000000000BDE800000000'))
|
||||||
f.seek(0x150)
|
f.seek(0x150)
|
||||||
f.write(b'\x00')
|
f.write(b'\x00')
|
||||||
f.flush()
|
f.flush()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue