aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/kirkwood/base-files/lib
diff options
context:
space:
mode:
author尤晓杰 <yxj790222@163.com>2018-01-17 21:03:50 +0800
committerMathias Kresin <dev@kresin.me>2018-01-18 07:26:28 +0100
commita7e62b4be1dac8e98a816ad9b11d0b8ff7620dd7 (patch)
tree905d411dd093d5dff28f9086fdfb3562305a282e /target/linux/kirkwood/base-files/lib
parentb6868e2f4703efe18d91c0422fb090d8a119c8fd (diff)
downloadupstream-a7e62b4be1dac8e98a816ad9b11d0b8ff7620dd7.tar.gz
upstream-a7e62b4be1dac8e98a816ad9b11d0b8ff7620dd7.tar.bz2
upstream-a7e62b4be1dac8e98a816ad9b11d0b8ff7620dd7.zip
kirkwood: fix sysupgrade
The platform_check_image() stub need to return 0 for success, otherwise the sysupgrade will fail with: Image check 'platform_check_image' failed. Fixes: aa6f5f1787a6 ("kirkwood: use image metadata") Signed-off-by: 尤晓杰 <yxj790222@163.com> [reworded commit message} Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/kirkwood/base-files/lib')
-rw-r--r--target/linux/kirkwood/base-files/lib/upgrade/platform.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/kirkwood/base-files/lib/upgrade/platform.sh b/target/linux/kirkwood/base-files/lib/upgrade/platform.sh
index 27012bd21d..a25d90a096 100644
--- a/target/linux/kirkwood/base-files/lib/upgrade/platform.sh
+++ b/target/linux/kirkwood/base-files/lib/upgrade/platform.sh
@@ -4,7 +4,7 @@ RAMFS_COPY_DATA='/etc/fw_env.config /var/lock/fw_printenv.lock'
REQUIRE_IMAGE_METADATA=1
platform_check_image() {
- return 1
+ return 0
}
platform_do_upgrade() {