From 413e54ee965f6f2cf4d6420004b914571445e217 Mon Sep 17 00:00:00 2001 From: jow Date: Fri, 18 Jun 2010 07:58:32 +0000 Subject: [PATCH] [backfire] merge r21833 git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@21834 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/orion/base-files/lib/upgrade/platform.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/target/linux/orion/base-files/lib/upgrade/platform.sh b/target/linux/orion/base-files/lib/upgrade/platform.sh index def241d4b..fdd26c517 100644 --- a/target/linux/orion/base-files/lib/upgrade/platform.sh +++ b/target/linux/orion/base-files/lib/upgrade/platform.sh @@ -9,13 +9,21 @@ platform_check_image() { case "${hardware}" in # hardware with padded uImage + padded rootfs - 'Netgear WNR854T' | 'Linksys WRT350N v2') + 'Linksys WRT350N v2') [ "${magic}" != '2705' ] && { echo "Invalid image type ${magic}." return 1 } return 0 ;; + # Netgear WNR854T has extra header before uImage + 'Netgear WNR854T') + [ "${magic}" != '8519' ] && { + echo "Invalid image type ${magic}." + return 1 + } + return 0 + ;; esac echo "Sysupgrade is not yet supported on ${hardware}." -- 2.35.1