openwrtv3/target/linux/kirkwood/base-files/lib/upgrade/platform.sh
尤晓杰 a7e62b4be1 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: aa6f5f1787 ("kirkwood: use image metadata")
Signed-off-by: 尤晓杰 <yxj790222@163.com>
[reworded commit message}
Signed-off-by: Mathias Kresin <dev@kresin.me>
2018-01-18 07:26:28 +01:00

22 lines
362 B
Bash

RAMFS_COPY_BIN='fw_printenv fw_setenv'
RAMFS_COPY_DATA='/etc/fw_env.config /var/lock/fw_printenv.lock'
REQUIRE_IMAGE_METADATA=1
platform_check_image() {
return 0
}
platform_do_upgrade() {
local board="$(board_name)"
case "$board" in
"linksys,audi"|\
"linksys,viper")
platform_do_upgrade_linksys "$ARGV"
;;
*)
nand_do_upgrade "$ARGV"
;;
esac
}