ar71xx: another fix to wndr3700_board_detect
[openwrt/openwrt.git] / target / linux / ar71xx / base-files / lib / ar71xx.sh
index 46e631110cb3517a80e1bcc8e845aa09096f0133..678482eb156b77a7ea0a7aa5d8d3c698760da53b 100755 (executable)
@@ -39,7 +39,7 @@ wndr3700_board_detect() {
        "33373031")
                model="$(ar71xx_get_mtd_offset_size_format art 41 32 %c)"
                # Use awk to remove everything unprintable
-               model_stripped="$(echo -n "$model" | LC_CTYPE=C awk -v 'FS=[^[:print:]]' '{print $1; exit}')"
+               model_stripped="$(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
@@ -114,6 +114,9 @@ tplink_board_detect() {
        "044403"*)
                model="ANTMINER-S3"
                ;;
+       "44440101"*)
+               model="ANTROUTER-R1"
+               ;;
        "120000"*)
                model="MERCURY MAC1200R"
                ;;