ar71xx: Add support for AP147-010 reference board
[openwrt/staging/mkresin.git] / target / linux / ar71xx / base-files / lib / ar71xx.sh
index 00e39ae6392a7ce2330c4d42741c60db517990c9..d5d5b60660eddb12b3985edf9be3dfc5968a852c 100755 (executable)
@@ -38,7 +38,7 @@ wndr3700_board_detect() {
                ;;
        "33373031")
                # Use awk to remove everything after the first zero byte
-               model="$(ar71xx_get_mtd_offset_size_format art 41 32 %c | awk 'BEGIN{FS="[[:cntrl:]]"} {print $1; exit}')"
+               model="$(ar71xx_get_mtd_offset_size_format art 41 32 %c | LC_CTYPE=C awk -v 'FS=[^[:print:]]' '{print $1; exit}')"
                case $model in
                $'\xff'*)
                        if [ "${model:24:1}" = 'N' ]; then
@@ -110,6 +110,9 @@ tplink_board_detect() {
        "04440001"*)
                model="BITMAIN ANTMINER S1"
                ;;
+       "04440003"*)
+               model="BITMAIN ANTMINER S3"
+               ;;
        "120000"*)
                model="MERCURY MAC1200R"
                ;;
@@ -359,6 +362,12 @@ ar71xx_board_detect() {
        *"AP135-020 reference board")
                name="ap135-020"
                ;;
+       *"AP143 reference board")
+               name="ap143"
+               ;;
+       *"AP147-010 reference board")
+               name="ap147-010"
+               ;;
        *AP81)
                name="ap81"
                ;;
@@ -405,6 +414,9 @@ ar71xx_board_detect() {
        *"DIR-615 rev. E4")
                name="dir-615-e4"
                ;;
+       *"DIR-615 rev. I1")
+               name="dir-615-i1"
+               ;;
        *"DIR-825 rev. B1")
                name="dir-825-b1"
                ;;
@@ -414,6 +426,12 @@ ar71xx_board_detect() {
        *"DIR-835 rev. A1")
                name="dir-835-a1"
                ;;
+       *"dLAN pro 500 Wireless+")
+               name="dlan-pro-500-wp"
+               ;;
+       *"dLAN pro 1200+ WiFi ac")
+               name="dlan-pro-1200-ac"
+               ;;
        *"Dragino v2")
                name="dragino2"
                ;;
@@ -637,6 +655,9 @@ ar71xx_board_detect() {
        *"Rocket M")
                name="rocket-m"
                ;;
+       *"Rocket M TI")
+               name="rocket-m-ti"
+               ;;
        *"Rocket M XW")
                name="rocket-m-xw"
                ;;