From e838957ad9e8839d77030326cad650a518985f44 Mon Sep 17 00:00:00 2001 From: Julien Rabier Date: Mon, 4 Feb 2019 21:03:35 +0100 Subject: [PATCH] ar71xx: fix RB941-2nD detection 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 [Alter string to include all flavours + slight rewrite of commit msg] Signed-off-by: Koen Vandeputte (cherry picked from commit 6570f3c93aa4110efd1466a6b89742c2e11d7c11) --- target/linux/ar71xx/base-files/lib/ar71xx.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index ccbd4e77c3..7f214fe600 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -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") -- 2.25.1