From 25ef37274c5ff00bd2e3118620d419ca2f604571 Mon Sep 17 00:00:00 2001 From: Hyy2001X <1804430051@qq.com> Date: Wed, 6 Jan 2021 15:36:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20=E9=9D=9E=20lean=20?= =?UTF-8?q?=E6=BA=90=E7=A0=81=E6=94=AF=E6=8C=81(=E6=B5=8B=E8=AF=95)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/AutoBuild_DiyScript.sh | 4 ++-- Scripts/AutoBuild_Function.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Scripts/AutoBuild_DiyScript.sh b/Scripts/AutoBuild_DiyScript.sh index ee80450..70b8566 100644 --- a/Scripts/AutoBuild_DiyScript.sh +++ b/Scripts/AutoBuild_DiyScript.sh @@ -57,8 +57,8 @@ Diy-Part2() { Diy-Part3() { GET_TARGET_INFO Default_Firmware="openwrt-${TARGET_BOARD}-${TARGET_SUBTARGET}-${TARGET_PROFILE}-squashfs-sysupgrade.bin" - AutoBuild_Firmware="AutoBuild-${TARGET_PROFILE}-Lede-${Openwrt_Version}.bin" - AutoBuild_Detail="AutoBuild-${TARGET_PROFILE}-Lede-${Openwrt_Version}.detail" + AutoBuild_Firmware="AutoBuild-${TARGET_PROFILE}-${Openwrt_Version}.bin" + AutoBuild_Detail="AutoBuild-${TARGET_PROFILE}-${Openwrt_Version}.detail" mkdir -p bin/Firmware echo "Firmware: ${AutoBuild_Firmware}" mv -f bin/targets/"${TARGET_BOARD}/${TARGET_SUBTARGET}/${Default_Firmware}" bin/Firmware/"${AutoBuild_Firmware}" diff --git a/Scripts/AutoBuild_Function.sh b/Scripts/AutoBuild_Function.sh index e104d57..524681a 100644 --- a/Scripts/AutoBuild_Function.sh +++ b/Scripts/AutoBuild_Function.sh @@ -10,7 +10,7 @@ GET_TARGET_INFO() { [ -z ${AutoUpdate_Version} ] && AutoUpdate_Version="未知" Default_File="package/lean/default-settings/files/zzz-default-settings" [ -f ${Default_File} ] && Lede_Version=$(egrep -o "R[0-9]+\.[0-9]+\.[0-9]+" $Default_File) - [ -z ${Lede_Version} ] && Lede_Version="AutoBuild" + [ -z ${Lede_Version} ] && Lede_Version="Openwrt" Openwrt_Version="${Lede_Version}-${Compile_Date}" TARGET_PROFILE=$(egrep -o "CONFIG_TARGET.*DEVICE.*=y" .config | sed -r 's/.*DEVICE_(.*)=y/\1/') [ -z "${TARGET_PROFILE}" ] && TARGET_PROFILE="${Default_Device}"