diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-06-18 07:57:45 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-06-18 07:57:45 +0000 |
commit | c32b99c0bd52128e68e7f245bbdfb72f0ba11b78 (patch) | |
tree | 75fdf28ed9f2b5d52dd90dd74eb73c29c0189c3a /target/linux/orion/base-files/lib/upgrade | |
parent | 247b1ff93e7bf0eaf41201d98ad3d3a077a120c4 (diff) | |
download | mtk-20170518-c32b99c0bd52128e68e7f245bbdfb72f0ba11b78.zip mtk-20170518-c32b99c0bd52128e68e7f245bbdfb72f0ba11b78.tar.gz mtk-20170518-c32b99c0bd52128e68e7f245bbdfb72f0ba11b78.tar.bz2 |
fix sysupgrade for the Netgear WNR854T (#7484)
SVN-Revision: 21833
Diffstat (limited to 'target/linux/orion/base-files/lib/upgrade')
-rw-r--r-- | target/linux/orion/base-files/lib/upgrade/platform.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/target/linux/orion/base-files/lib/upgrade/platform.sh b/target/linux/orion/base-files/lib/upgrade/platform.sh index def241d..fdd26c5 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}." |