Browse Source

Merge 66b9d089a1 into f4a4187e23

pull/110/merge
ifxabc 9 months ago
committed by GitHub
parent
commit
e663828835
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      patch.py

1
patch.py

@ -334,7 +334,6 @@ def patch_npk_package(package,key_dict):
patch_squashfs(extract_dir,key_dict) patch_squashfs(extract_dir,key_dict)
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 '1d' {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}")
run_shell_command(f"mksquashfs {extract_dir} {squashfs_file} -quiet -comp xz -no-xattrs -b 256k") run_shell_command(f"mksquashfs {extract_dir} {squashfs_file} -quiet -comp xz -no-xattrs -b 256k")

Loading…
Cancel
Save