aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/orion/base-files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-06-18 07:57:45 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-06-18 07:57:45 +0000
commit6188d187c8618bd84a26e847349c3ec6e4a6d949 (patch)
treeae5046955654c5753eae2065b98bd22836fbf995 /target/linux/orion/base-files
parent06e250f9d57fcd6772e5f320707eccdb1487aa89 (diff)
downloadupstream-6188d187c8618bd84a26e847349c3ec6e4a6d949.tar.gz
upstream-6188d187c8618bd84a26e847349c3ec6e4a6d949.tar.bz2
upstream-6188d187c8618bd84a26e847349c3ec6e4a6d949.zip
[orion] fix sysupgrade for the Netgear WNR854T (#7484)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21833 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/orion/base-files')
-rw-r--r--target/linux/orion/base-files/lib/upgrade/platform.sh10
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 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}."