Browse Source
Update patch.py
Signed-off-by: ifxabc <80816089+ifxabc@users.noreply.github.com>
pull/110/head
ifxabc
9 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
0 additions and
1 deletions
-
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") |
|
|
|