ramips: add support for Dovado tiny AC
[openwrt/openwrt.git] / target / linux / ramips / base-files / lib / ramips.sh
index d24223556449f838cff6d2f68ff67d6226c25532..2ed09c9b33cc5474448ee18e24ebd6ba7c04e580 100755 (executable)
@@ -145,6 +145,9 @@ ramips_board_detect() {
        *"DIR-860L B1")
                name="dir-860l-b1"
                ;;
+       *"Dovado Tiny AC")
+               name="tiny-ac"
+               ;;
        *"E1700")
                name="e1700"
                ;;
@@ -169,6 +172,15 @@ ramips_board_detect() {
        *"FreeStation5")
                name="freestation5"
                ;;
+       *"HC5661")
+               name="hc5661"
+               ;;
+       *"HC5761")
+               name="hc5761"
+               ;;
+       *"HC5861")
+               name="hc5861"
+               ;;
        *"HG255D")
                name="hg255d"
                ;;
@@ -193,6 +205,15 @@ ramips_board_detect() {
        *"M4")
                name="m4"
                ;;
+       *"MediaTek LinkIt Smart7688")
+               linkit="$(dd bs=1 skip=1024 count=12 if=/dev/mtd2 2> /dev/null)"
+               if [ "${linkit}" = "LINKITS7688D" ]; then
+                       name="linkits7688d"
+                       RAMIPS_MODEL="${machine} DUO"
+               else
+                       name="linkits7688"
+               fi
+               ;;
        *"Memory 2 Move")
                name="m2m"
                ;;