Author: blogic
Date: 2015-08-17 08:18:38 +0200 (Mon, 17 Aug 2015)
New Revision: 46660

Modified:
   trunk/target/linux/ramips/base-files/lib/upgrade/platform.sh
Log:
ramips: reorder the sysupgrade script

Signed-off-by: John Crispin <[email protected]>

Modified: trunk/target/linux/ramips/base-files/lib/upgrade/platform.sh
===================================================================
--- trunk/target/linux/ramips/base-files/lib/upgrade/platform.sh        
2015-08-17 06:18:30 UTC (rev 46659)
+++ trunk/target/linux/ramips/base-files/lib/upgrade/platform.sh        
2015-08-17 06:18:38 UTC (rev 46660)
@@ -134,20 +134,27 @@
                }
                return 0
                ;;
-       wsr-1166)
-               [ "$magic" != "48445230" ] && {
+       ar670w)
+               [ "$magic" != "6d000080" ] && {
                        echo "Invalid image type."
                        return 1
                }
                return 0
                ;;
-       ar670w)
-               [ "$magic" != "6d000080" ] && {
+       br-6475nd)
+               [ "$magic" != "43535953" ] && {
                        echo "Invalid image type."
                        return 1
                }
                return 0
                ;;
+       c20i)
+               [ "$magic" != "03000000" ] && {
+                       echo "Invalid image type."
+                       return 1
+               }
+               return 0
+               ;;
        cy-swr1100|\
        dir-610-a1|\
        dir-645|\
@@ -158,20 +165,13 @@
                }
                return 0
                ;;
-       br-6475nd)
-               [ "$magic" != "43535953" ] && {
+       wsr-1166)
+               [ "$magic" != "48445230" ] && {
                        echo "Invalid image type."
                        return 1
                }
                return 0
                ;;
-       c20i)
-               [ "$magic" != "03000000" ] && {
-                       echo "Invalid image type."
-                       return 1
-               }
-               return 0
-               ;;
        esac
 
        echo "Sysupgrade is not yet supported on $board."
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to