mirror of
https://github.com/elseif/MikroTikPatch.git
synced 2025-01-23 21:44:59 +03:00
modified: patch.py
This commit is contained in:
parent
e69b27a446
commit
ac6cf082b1
3
patch.py
3
patch.py
@ -295,8 +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'sudo sed -i "1d" {logo}')
|
run_shell_command(f"sudo sed -i '8s#.*# elseif@live.cn https://github.com/elseif/MikroTikPatch#' {logo}")
|
||||||
run_shell_command(f'echo " https://github.com/elseif/MikroTikPatch" | sudo tee -a {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}")
|
||||||
_, stderr = run_shell_command(f"mksquashfs {extract_dir} {squashfs_file} -quiet -comp xz -no-xattrs -b 256k")
|
_, stderr = run_shell_command(f"mksquashfs {extract_dir} {squashfs_file} -quiet -comp xz -no-xattrs -b 256k")
|
||||||
|
Loading…
Reference in New Issue
Block a user