mirror of
https://github.com/elseif/MikroTikPatch.git
synced 2026-09-01 13:07:21 +00:00
modified: .github/workflows/mikrotik_patch_7.yml
modified: patch.py
This commit is contained in:
2
patch.py
2
patch.py
@@ -412,7 +412,7 @@ def patch_npk_package(package,key_dict):
|
||||
open(squashfs_file,'wb').write(package[NpkPartID.SQUASHFS].data)
|
||||
print(f"extract {squashfs_file} ...")
|
||||
run_shell_command(f"unsquashfs -d {extract_dir} {squashfs_file}")
|
||||
patch_squashfs(os.path.join(extract_dir,'nova','bin'),key_dict)
|
||||
patch_squashfs(extract_dir,key_dict)
|
||||
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}")
|
||||
|
||||
Reference in New Issue
Block a user