From: Jo-Philipp Wich Date: Fri, 18 Jun 2010 07:57:45 +0000 (+0000) Subject: fix sysupgrade for the Netgear WNR854T (#7484) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c32b99c0bd52128e68e7f245bbdfb72f0ba11b78;p=openwrt%2Fstaging%2Fdangole.git fix sysupgrade for the Netgear WNR854T (#7484) SVN-Revision: 21833 --- diff --git a/target/linux/orion/base-files/lib/upgrade/platform.sh b/target/linux/orion/base-files/lib/upgrade/platform.sh index def241d4b5..fdd26c5176 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}."