aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/base-files
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2017-04-10 06:45:59 +0200
committerJohn Crispin <john@phrozen.org>2017-04-24 11:11:52 +0200
commitda352c46235a69d333277b52c1d98fe334b94d9f (patch)
tree72cbc581550633feda18b5e3c96f38d1183baf21 /target/linux/mediatek/base-files
parent003e15221a353a1162c7253c01864893469b66f4 (diff)
downloadupstream-da352c46235a69d333277b52c1d98fe334b94d9f.tar.gz
upstream-da352c46235a69d333277b52c1d98fe334b94d9f.tar.bz2
upstream-da352c46235a69d333277b52c1d98fe334b94d9f.zip
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>
Diffstat (limited to 'target/linux/mediatek/base-files')
-rwxr-xr-xtarget/linux/mediatek/base-files/lib/upgrade/platform.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/target/linux/mediatek/base-files/lib/upgrade/platform.sh b/target/linux/mediatek/base-files/lib/upgrade/platform.sh
index f2dd453a11..9a844bc7e1 100755
--- a/target/linux/mediatek/base-files/lib/upgrade/platform.sh
+++ b/target/linux/mediatek/base-files/lib/upgrade/platform.sh
@@ -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