ar71xx: fix Mikrotik board detection
authorKoen Vandeputte <koen.vandeputte@ncentric.com>
Mon, 29 Jul 2019 08:10:02 +0000 (10:10 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Thu, 2 Jan 2020 01:05:42 +0000 (02:05 +0100)
Fix a typo in the machine type being extracted from /proc/cpuinfo
which causes all Mikrotik board to be undetected properly.

This lead to sysupgrade issues and probably some others too.

Fixes: acf2b6c8881b ("ar71xx: base-files: fix board detect on new MikroTik devices")

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
(cherry picked from commit e09da0169a088663f6dab1f71b2a4b690eab21d3)

target/linux/ar71xx/base-files/lib/ar71xx.sh

index 52d6f6522b005da74feb3ebb668471aaf36e47de..78c6cfc8090f60be838c9b878e673ea093285987 100755 (executable)
@@ -965,7 +965,7 @@ ar71xx_board_detect() {
        *"MAC1200R")
                name="mc-mac1200r"
                ;;
-       "MikroTik"*)
+       "Mikrotik"*)
                name=$(mikrotik_board_detect "$machine")
                ;;
        *"MiniBox V1.0")