Author: nbd
Date: 2016-01-03 16:12:07 +0100 (Sun, 03 Jan 2016)
New Revision: 48093

Modified:
   branches/chaos_calmer/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
Log:
ar71xx: fix sysupgrade for wnr2200

Signed-off-by: Felix Fietkau <[email protected]>

Backport of r48005

Modified: 
branches/chaos_calmer/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
===================================================================
--- 
branches/chaos_calmer/target/linux/ar71xx/base-files/lib/upgrade/platform.sh    
    2016-01-03 14:48:34 UTC (rev 48092)
+++ 
branches/chaos_calmer/target/linux/ar71xx/base-files/lib/upgrade/platform.sh    
    2016-01-03 15:12:07 UTC (rev 48093)
@@ -447,13 +447,20 @@
                fi
                return 0
                ;;
-    wnr2000-v4)
+       wnr2000-v4)
                [ "$magic_long" != "32303034" ] && {
                        echo "Invalid image type."
                        return 1
                }
                return 0
                ;;
+       wnr2200)
+                [ "$magic_long" != "32323030" ] && {
+                        echo "Invalid image type."
+                        return 1
+                }
+                return 0
+                ;;
 
        esac
 
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to