ar71xx: base-files: fix board detect on new MikroTik devices
authorHenryk Heisig <hyniu@o2.pl>
Sat, 23 Mar 2019 08:35:11 +0000 (08:35 +0000)
committerPetr Štetiar <ynezz@true.cz>
Wed, 19 Jun 2019 06:44:28 +0000 (08:44 +0200)
commit76c963bb01fbd97a26f9fba6310d6ba71b659895
tree6de199a90aaf4416ca725aebd828fbf26b8495e5
parent17fc5375f0601797b21206e1f378548ce3c255b1
ar71xx: base-files: fix board detect on new MikroTik devices

Move all MikroTik devices to new function to increase script execution
speed.

Machine name in new version of MikroTik RouterBOARD devices add "RB"
before model name:

 Old machine name: MikroTik RouterBOARD 951Ui-2nD
 New:              MikroTik RouterBOARD RB951Ui-2nD

So this patch should fix it for all currently supported MikroTik boards.

Tested-by: Cezary Jackiewicz <cezary@eko.one.pl> [wAP R-2nD]
Signed-off-by: Henryk Heisig <hyniu@o2.pl>
[rebased,commit message facelift,script fixes]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
[spotted missing 922UAGS-5HPacD]
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
target/linux/ar71xx/base-files/lib/ar71xx.sh