V3.0 Fix the bug of Firmware_name acquisition failure
This commit is contained in:
parent
53acd5b664
commit
504b15c5da
|
@ -4,7 +4,7 @@
|
|||
# AutoUpdate
|
||||
|
||||
Author=Hyy2001
|
||||
Version=V2.9
|
||||
Version=V3.0
|
||||
Updated=2020.09.25
|
||||
TARGET_PROFILE=d-team_newifi-d2
|
||||
FIRMWARE_SUFFIX=bin
|
||||
|
@ -23,7 +23,7 @@ if [ "$CURRENT_VERSION" == "" ]; then
|
|||
echo -e "\n警告:当前固件版本获取失败!"
|
||||
CURRENT_VERSION=未知
|
||||
fi
|
||||
CURRENT_DEVICE=`cat ./openwrt_device 2> /dev/null`
|
||||
CURRENT_DEVICE=`cat ./openwrt_device 2> /dev/null | awk 'NR==1'`
|
||||
if [ "$CURRENT_DEVICE" == "" ]; then
|
||||
echo -e "\n警告:当前设备名称获取失败,使用预设名称[$TARGET_PROFILE]"
|
||||
CURRENT_DEVICE=$TARGET_PROFILE
|
||||
|
|
Loading…
Reference in New Issue