From 0f304f3cede707e7162775101e62e4388b50820b Mon Sep 17 00:00:00 2001 From: Hyy2001X <1804430051@qq.com> Date: Sun, 25 Oct 2020 22:25:23 +0800 Subject: [PATCH] Fix openwrt version --- Scripts/diy-script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/diy-script.sh b/Scripts/diy-script.sh index d0e4457..d64464c 100644 --- a/Scripts/diy-script.sh +++ b/Scripts/diy-script.sh @@ -7,12 +7,12 @@ Diy_Core() { Author=Hyy2001 Default_Device=d-team_newifi-d2 -Openwrt_Version="$Lede_Version-`date +%Y%m%d`" AutoUpdate_Version=`awk 'NR==6' ./package/base-files/files/bin/AutoUpdate.sh | awk -F'[="]+' '/Version/{print $2}'` Compile_Date=`date +'%Y/%m/%d'` Compile_Time=`date +'%Y-%m-%d %H:%M:%S'` Default_File=./package/lean/default-settings/files/zzz-default-settings Lede_Version=`egrep -o "R[0-9]+\.[0-9]+\.[0-9]+" $Default_File` +Openwrt_Version="$Lede_Version-`date +%Y%m%d`" } GET_TARGET_INFO() {