aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-01-03 18:31:06 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-01-03 18:31:06 +0000
commitd172bf4c5b7494067d737ffc87d1ba942cc5542b (patch)
tree69e99e420960c76eab1d034c548a34aa85e25da9 /target/linux/ramips/base-files
parent2b33ca08bf1e36ca8b3d68b4e5a55cd529fd8dc1 (diff)
downloadupstream-d172bf4c5b7494067d737ffc87d1ba942cc5542b.tar.gz
upstream-d172bf4c5b7494067d737ffc87d1ba942cc5542b.tar.bz2
upstream-d172bf4c5b7494067d737ffc87d1ba942cc5542b.zip
ramips: fix wsr-1166 sysupgrade support
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43816 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh8
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."