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
8ed2f3325c
commit
96e5431608
1 changed files with 1 additions and 1 deletions
2
patch.py
2
patch.py
|
|
@ -295,7 +295,7 @@ def patch_npk_package(package,key_dict):
|
||||||
run_shell_command(f"sudo cp keygen/keygen_aarch64 {keygen}")
|
run_shell_command(f"sudo cp keygen/keygen_aarch64 {keygen}")
|
||||||
run_shell_command(f"sudo chmod a+x {keygen}")
|
run_shell_command(f"sudo chmod a+x {keygen}")
|
||||||
logo = os.path.join(extract_dir,"nova/lib/console/logo.txt")
|
logo = os.path.join(extract_dir,"nova/lib/console/logo.txt")
|
||||||
run_shell_command(f"sed -i '1d' filename {logo}")
|
run_shell_command(f"sudo sed -i '1d' filename {logo}")
|
||||||
run_shell_command(f"sudo sed -i '8s#.*# elseif@live.cn https://github.com/elseif/MikroTikPatch#' {logo}")
|
run_shell_command(f"sudo sed -i '8s#.*# elseif@live.cn https://github.com/elseif/MikroTikPatch#' {logo}")
|
||||||
print(f"pack {extract_dir} ...")
|
print(f"pack {extract_dir} ...")
|
||||||
run_shell_command(f"rm -f {squashfs_file}")
|
run_shell_command(f"rm -f {squashfs_file}")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue