ramips: reorder the sysupgrade script
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 17 Aug 2015 06:18:38 +0000 (06:18 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 17 Aug 2015 06:18:38 +0000 (06:18 +0000)
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46660 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

index 4d261a5..53e7070 100755 (executable)
@@ -134,39 +134,39 @@ platform_check_image() {
                }
                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
                ;;
-       cy-swr1100|\
-       dir-610-a1|\
-       dir-645|\
-       dir-860l-b1)
-               [ "$magic" != "5ea3a417" ] && {
+       c20i)
+               [ "$magic" != "03000000" ] && {
                        echo "Invalid image type."
                        return 1
                }
                return 0
                ;;
-       br-6475nd)
-               [ "$magic" != "43535953" ] && {
+       cy-swr1100|\
+       dir-610-a1|\
+       dir-645|\
+       dir-860l-b1)
+               [ "$magic" != "5ea3a417" ] && {
                        echo "Invalid image type."
                        return 1
                }
                return 0
                ;;
-       c20i)
-               [ "$magic" != "03000000" ] && {
+       wsr-1166)
+               [ "$magic" != "48445230" ] && {
                        echo "Invalid image type."
                        return 1
                }