ramips: add support for Buffalo WCR-1166DS
[openwrt/openwrt.git] / target / linux / ramips / base-files / lib / upgrade / platform.sh
index c6ad8ca3e5262e300ba49f9d31b5bb874dc88380..d83e5c1dd28bc885f81ea912afa15a2314a85e3e 100755 (executable)
@@ -226,6 +226,11 @@ platform_check_image() {
                }
                return 0
                ;;
+       ubnt-erx)
+               nand_do_platform_check "$board" "$1"
+               return $?;
+               ;;
+       wcr-1166ds|\
        wsr-1166)
                [ "$magic" != "48445230" ] && {
                        echo "Invalid image type."
@@ -233,10 +238,6 @@ platform_check_image() {
                }
                return 0
                ;;
-       ubnt-erx)
-               nand_do_platform_check "$board" "$1"
-               return $?;
-               ;;
        esac
 
        echo "Sysupgrade is not yet supported on $board."