File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,12 +75,20 @@ download_imagebuilder() {
7575 fi
7676
7777 # Downloading imagebuilder files
78- download_file=" https://downloads.${op_sourse} .org/releases/${op_branch} /targets/${target_system} /${op_sourse} -imagebuilder-${op_branch} -${target_name} .Linux-x86_64.tar.xz"
78+ if [[ " ${op_branch: 0: 2} " -gt " 23" ]]; then
79+ download_file=" https://downloads.${op_sourse} .org/releases/${op_branch} /targets/${target_system} /${op_sourse} -imagebuilder-${op_branch} -${target_name} .Linux-x86_64.tar.zst"
80+ else
81+ download_file=" https://downloads.${op_sourse} .org/releases/${op_branch} /targets/${target_system} /${op_sourse} -imagebuilder-${op_branch} -${target_name} .Linux-x86_64.tar.xz"
82+ fi
7983 curl -fsSOL ${download_file}
8084 [[ " ${?} " -eq " 0" ]] || error_msg " Download failed: [ ${download_file} ]"
8185
8286 # Unzip and change the directory name
83- tar -xJf * -imagebuilder-* && sync && rm -f * -imagebuilder-* .tar.xz
87+ if [[ " ${op_branch: 0: 2} " -gt " 23" ]]; then
88+ tar --use-compress-program=unzstd -xJf rm -f * -imagebuilder-* .tar.zst
89+ else
90+ tar -xJf * -imagebuilder-* && sync && rm -f * -imagebuilder-* .tar.xz
91+ fi
8492 mv -f * -imagebuilder-* ${openwrt_dir}
8593
8694 sync && sleep 3
You can’t perform that action at this time.
0 commit comments