From: 尤晓杰 Date: Wed, 17 Jan 2018 13:03:50 +0000 (+0800) Subject: kirkwood: fix sysupgrade X-Git-Tag: v18.06.0-rc1~1204 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a7e62b4be1dac8e98a816ad9b11d0b8ff7620dd7;p=oweals%2Fopenwrt.git 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: 尤晓杰 [reworded commit message} Signed-off-by: Mathias Kresin --- 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() {