ar71xx: base-files: shorten case statement patterns in lib/ar71xx.sh
authorPiotr Dymacz <pepe2k@gmail.com>
Sat, 11 Mar 2017 16:44:05 +0000 (17:44 +0100)
committerPiotr Dymacz <pepe2k@gmail.com>
Sun, 12 Mar 2017 22:47:59 +0000 (23:47 +0100)
At now there is no general rule about what part of (or whole) machine
name string should be used for board name assignment/detection and every
target handles this in a different way.

For most of the boards in ar71xx we already use only part of the string,
generally without the vendor name.

This shortens wildcards patterns in case statement for board name
assignment, wherever possible (e.g. where it won't be misleading).

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
target/linux/ar71xx/base-files/lib/ar71xx.sh

index b7a191354db7c1492c43c30f5ae0d9cd63d647d0..bca061fce4e80811b9b0416570093d3d0e45d414 100755 (executable)
@@ -645,13 +645,13 @@ ar71xx_board_detect() {
        *"GL-MIFI")
                name="gl-mifi"
                ;;
-       *"EnGenius EPG5000")
+       *"EPG5000")
                name="epg5000"
                ;;
-       *"EnGenius ESR1750")
+       *"ESR1750")
                name="esr1750"
                ;;
-       *"EnGenius ESR900")
+       *"ESR900")
                name="esr900"
                ;;
        *"JA76PF")
@@ -734,7 +734,7 @@ ar71xx_board_detect() {
        *"My Net N750")
                name="mynet-n750"
                ;;
-       *"WD My Net Wi-Fi Range Extender")
+       *"My Net Wi-Fi Range Extender")
                name="mynet-rext"
                ;;
        *"MZK-W04NU")
@@ -746,10 +746,10 @@ ar71xx_board_detect() {
        *"NBG460N/550N/550NH")
                name="nbg460n_550n_550nh"
                ;;
-       *"Zyxel NBG6616")
+       *"NBG6616")
                name="nbg6616"
                ;;
-       *"Zyxel NBG6716")
+       *"NBG6716")
                name="nbg6716"
                ;;
        *"OM2P")
@@ -939,10 +939,10 @@ ar71xx_board_detect() {
        *"SMART-300")
                name="smart-300"
                ;;
-       "Smart Electronics Black Swift board"*)
+       *"Black Swift board"*)
                name="bsb"
                ;;
-       *"Telldus TellStick ZNet Lite")
+       *"TellStick ZNet Lite")
                name="tellstick-znet-lite"
                ;;
        *"SOM9331")
@@ -1227,7 +1227,7 @@ ar71xx_board_detect() {
        *"WRT400N")
                name="wrt400n"
                ;;
-       *"WRTnode2Q board")
+       *"WRTnode2Q"*)
                name="wrtnode2q"
                ;;
        *"WZR-450HP2")
@@ -1269,16 +1269,16 @@ ar71xx_board_detect() {
        *"EmbWir-Dorin-Router")
                name="ew-dorin-router"
                ;;
-       "8devices Carambola2"*)
+       *"Carambola2"*)
                name="carambola2"
                ;;
-       "8devices Lima"*)
+       *"Lima"*)
                name="lima"
                ;;
-       *"Sitecom WLR-8100")
+       *"WLR-8100")
                name="wlr8100"
                ;;
-       *"BHU BXU2000n-2 rev. A1")
+       *"BXU2000n-2 rev. A1")
                name="bxu2000n-2-a1"
                ;;
        *"HiWiFi HC6361")