ramips: fix wsr-1166 sysupgrade support
authorFelix Fietkau <nbd@openwrt.org>
Sat, 3 Jan 2015 18:31:06 +0000 (18:31 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 3 Jan 2015 18:31:06 +0000 (18:31 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43816

target/linux/ramips/base-files/lib/upgrade/platform.sh

index 991d3b5..10892f6 100755 (executable)
@@ -91,7 +91,6 @@ platform_check_image() {
        whr-600d |\
        whr-1166d |\
        wsr-600 |\
        whr-600d |\
        whr-1166d |\
        wsr-600 |\
-       wsr-1166 |\
        wl-330n | \
        wl-330n3g | \
        wl-351 | \
        wl-330n | \
        wl-330n3g | \
        wl-351 | \
@@ -116,6 +115,13 @@ platform_check_image() {
                }
                return 0
                ;;
                }
                return 0
                ;;
+       wsr-1166)
+               [ "$magic" != "48445230" ] && {
+                       echo "Invalid image type."
+                       return 1
+               }
+               return 0
+               ;;
        ar670w)
                [ "$magic" != "6d000080" ] && {
                        echo "Invalid image type."
        ar670w)
                [ "$magic" != "6d000080" ] && {
                        echo "Invalid image type."