mirror of
https://github.com/xopenwrt/X-OpenWrt-New.git
synced 2026-09-27 15:24:45 +00:00
Fix device name get
This commit is contained in:
@@ -11,12 +11,12 @@ FIRMWARE_SUFFIX=squashfs-sysupgrade.bin
|
|||||||
Lede_Version=`egrep -o "R[0-9]+\.[0-9]+\.[0-9]+" $Default_File`
|
Lede_Version=`egrep -o "R[0-9]+\.[0-9]+\.[0-9]+" $Default_File`
|
||||||
Compile_Date=`date +'%Y/%m/%d'`
|
Compile_Date=`date +'%Y/%m/%d'`
|
||||||
Compile_Time=`date +'%Y-%m-%d %H:%M:%S'`
|
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() {
|
GET_TARGET_INFO() {
|
||||||
TARGET_BOARD=`awk -F'[="]+' '/TARGET_BOARD/{print $2}' .config`
|
TARGET_BOARD=`awk -F'[="]+' '/TARGET_BOARD/{print $2}' .config`
|
||||||
TARGET_SUBTARGET=`awk -F'[="]+' '/TARGET_SUBTARGET/{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() {
|
ExtraPackages() {
|
||||||
|
|||||||
Reference in New Issue
Block a user