From 979ace28cb53dc7cfe715f23077c66f408a25d8d Mon Sep 17 00:00:00 2001 From: Hyy2001X <1804430051@qq.com> Date: Sat, 19 Sep 2020 16:03:03 +0800 Subject: [PATCH] Fix device name get --- 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 e5f0ec4..918d18d 100644 --- a/Scripts/diy-script.sh +++ b/Scripts/diy-script.sh @@ -11,12 +11,12 @@ FIRMWARE_SUFFIX=squashfs-sysupgrade.bin Lede_Version=`egrep -o "R[0-9]+\.[0-9]+\.[0-9]+" $Default_File` Compile_Date=`date +'%Y/%m/%d'` Compile_Time=`date +'%Y-%m-%d %H:%M:%S'` +TARGET_PROFILE=`grep '^CONFIG_TARGET.*DEVICE.*=y' .config | sed -r 's/.*DEVICE_(.*)=y/\1/'` } GET_TARGET_INFO() { TARGET_BOARD=`awk -F'[="]+' '/TARGET_BOARD/{print $2}' .config` TARGET_SUBTARGET=`awk -F'[="]+' '/TARGET_SUBTARGET/{print $2}' .config` -TARGET_PROFILE=`grep '^CONFIG_TARGET.*DEVICE.*=y' .config | sed -r 's/.*DEVICE_(.*)=y/\1/'` } ExtraPackages() {