aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/kirkwood/base-files
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/kirkwood/base-files')
-rw-r--r--target/linux/kirkwood/base-files/lib/upgrade/platform.sh22
1 files changed, 2 insertions, 20 deletions
diff --git a/target/linux/kirkwood/base-files/lib/upgrade/platform.sh b/target/linux/kirkwood/base-files/lib/upgrade/platform.sh
index b28ee873b3..dd06aa7f22 100644
--- a/target/linux/kirkwood/base-files/lib/upgrade/platform.sh
+++ b/target/linux/kirkwood/base-files/lib/upgrade/platform.sh
@@ -1,27 +1,9 @@
RAMFS_COPY_BIN='fw_printenv fw_setenv'
RAMFS_COPY_DATA='/etc/fw_env.config /var/lock/fw_printenv.lock'
-platform_check_image() {
- [ "$#" -gt 1 ] && return 1
- local board="$(board_name)"
- local magic="$(get_magic_long "$1")"
+REQUIRE_IMAGE_METADATA=1
- case "$board" in
- "linksys-audi"|\
- "linksys-viper")
- [ "$magic" != "27051956" -a "$magic" != "73797375" ] && {
- echo "Invalid image type."
- return 1
- }
- return 0
- ;;
- *)
- nand_do_platform_check $board $1
- return $?
- ;;
- esac
-
- echo "Sysupgrade is not yet supported on $board."
+platform_check_image() {
return 1
}