diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-01-03 18:31:06 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-01-03 18:31:06 +0000 |
commit | ca32b89cc06467d93f52cf9e64f783d2aa12d0be (patch) | |
tree | 0a571513aabea3f4515ac47b89a60ab8a0648b13 | |
parent | 88e8f99f7f45c19663becfed6ad09cad374ed34a (diff) | |
download | upstream-ca32b89cc06467d93f52cf9e64f783d2aa12d0be.tar.gz upstream-ca32b89cc06467d93f52cf9e64f783d2aa12d0be.tar.bz2 upstream-ca32b89cc06467d93f52cf9e64f783d2aa12d0be.zip |
ramips: fix wsr-1166 sysupgrade support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43816
-rwxr-xr-x | target/linux/ramips/base-files/lib/upgrade/platform.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index 991d3b556e..10892f615d 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -91,7 +91,6 @@ platform_check_image() { whr-600d |\ whr-1166d |\ wsr-600 |\ - wsr-1166 |\ wl-330n | \ wl-330n3g | \ wl-351 | \ @@ -116,6 +115,13 @@ platform_check_image() { } return 0 ;; + wsr-1166) + [ "$magic" != "48445230" ] && { + echo "Invalid image type." + return 1 + } + return 0 + ;; ar670w) [ "$magic" != "6d000080" ] && { echo "Invalid image type." |