ar71xx: fix RB941-2nD detection
authorJulien Rabier <taziden@flexiden.org>
Mon, 4 Feb 2019 20:03:35 +0000 (21:03 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Thu, 2 Jan 2020 00:57:49 +0000 (01:57 +0100)
Some hAP lite routers aren't detected because
/proc/cpuinfo shows "RouterBOARD RB941-2nD"
instead of "RouterBOARD 941-2nD".

Fix that.

Signed-off-by: Julien Rabier <taziden@flexiden.org>
[Alter string to include all flavours + slight rewrite of commit msg]
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
(cherry picked from commit 6570f3c93aa4110efd1466a6b89742c2e11d7c11)

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

index ccbd4e77c324a36e7fba6e6dccad59d8f94a3921..7f214fe600b11842ddf2b63e7bf3ce221eed1b1b 100755 (executable)
@@ -1073,7 +1073,7 @@ ar71xx_board_detect() {
        *"RouterBOARD 921GS-5HPacD r2")
                name="rb-921gs-5hpacd-r2"
                ;;
-       *"RouterBOARD 941-2nD")
+       *"RouterBOARD"*"941-2nD")
                name="rb-941-2nd"
                ;;
        *"RouterBOARD 951G-2HnD")