mediatek: fix sysupgrade board detection

boardnames were changed with the recent target update. the sysupgrade board
detection was not updated properly.

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2017-04-10 06:45:59 +02:00
parent 003e15221a
commit da352c4623
2 changed files with 10 additions and 5 deletions

View File

@@ -20,11 +20,12 @@ platform_check_image() {
local board=$(cat /tmp/sysinfo/board_name)
case "$board" in
NAND)
mediatek,mt7623-rfb-nand-ephy |\
mediatek,mt7623-rfb-nand)
nand_do_platform_check $board $1
return $?
;;
eMMC)
mediatek,mt7623-rfb-emmc)
local kernel_length=`(tar xf $tar_file sysupgrade-$board/kernel -O | wc -c) 2> /dev/null`
local rootfs_length=`(tar xf $tar_file sysupgrade-$board/root -O | wc -c) 2> /dev/null`
;;
@@ -46,7 +47,8 @@ platform_check_image() {
platform_pre_upgrade() {
local board=$(cat /tmp/sysinfo/board_name)
case "$board" in
NAND)
mediatek,mt7623-rfb-nand-ephy |\
mediatek,mt7623-rfb-nand)
nand_do_upgrade $1
;;
esac