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>
Mon, 17 Jun 2019 07:42:37 +0000 (09:42 +0200)
commitacf2b6c8881b432530bd98fa86753bf6a3546ff7
tree3d15399a569192a09956c8f98805d43a62f518ea
parentdd6d82112a10796dd5aa0f9e9c76ec8e77e7e211
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.

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