ramips: use different board names for variants
[openwrt/openwrt.git] / target / linux / ramips / base-files / lib / ramips.sh
index 526a5ae669794c85a5782a2a846b937decb60f4f..6b14d19feba5ea20ec38a11f99551d4737e26fc1 100755 (executable)
@@ -13,6 +13,9 @@ ramips_board_detect() {
        machine=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /machine/ {print $2}' /proc/cpuinfo)
 
        case "$machine" in
+       *"11AC NAS Router")
+               name="11acnas"
+               ;;
        *"3G150B")
                name="3g150b"
                ;;
@@ -52,8 +55,11 @@ ramips_board_detect() {
        *"AR725W")
                name="ar725w"
                ;;
-       *"ASL26555")
-               name="asl26555"
+       *"ASL26555 (8M)")
+               name="asl26555-8M"
+               ;;
+       *"ASL26555 (16M)")
+               name="asl26555-16M"
                ;;
        *"ATP-52B")
                name="atp-52b"
@@ -115,6 +121,9 @@ ramips_board_detect() {
        *"DCS-930L B1")
                name="dcs-930l-b1"
                ;;
+       *"Digineo AC1200 Pro")
+               name="ac1200pro"
+               ;;
        *"DIR-300 B1")
                name="dir-300-b1"
                ;;
@@ -127,9 +136,6 @@ ramips_board_detect() {
        *"DIR-600 B1")
                name="dir-600-b1"
                ;;
-       *"DIR-600 B2")
-               name="dir-600-b2"
-               ;;
        *"DIR-610 A1")
                name="dir-610-a1"
                ;;
@@ -160,6 +166,9 @@ ramips_board_detect() {
        *"DuZun DM06")
                name="duzun-dm06"
                ;;
+       *"DWR-512 B")
+               name="dwr-512-b"
+               ;;
        *"E1700")
                name="e1700"
                ;;
@@ -251,7 +260,7 @@ ramips_board_detect() {
                name="m2m"
                ;;
        *"Mercury MAC1200R v2")
-               name="mac1200rv2"
+               name="mac1200r-v2"
                ;;
        *"MicroWRT")
                name="microwrt"
@@ -286,6 +295,9 @@ ramips_board_detect() {
        *"MR-102N")
                name="mr-102n"
                ;;
+       *"MR200")
+               name="mr200"
+               ;;
        *"MT7620a + MT7530 evaluation"*)
                name="mt7620a_mt7530"
                ;;
@@ -334,8 +346,11 @@ ramips_board_detect() {
        *"NCS601W")
                name="ncs601w"
                ;;
-       *"NixcoreX1")
-               name="nixcore-x1"
+       *"NixcoreX1 (8M)")
+               name="nixcore-x1-8M"
+               ;;
+       *"NixcoreX1 (16M)")
+               name="nixcore-x1-16M"
                ;;
        *"NW718")
                name="nw718"
@@ -367,6 +382,9 @@ ramips_board_detect() {
        *"Q7")
                name="zte-q7"
                ;;
+       *"RB750Gr3")
+               name="rb750gr3"
+               ;;
        *"RE6500")
                name="re6500"
                ;;
@@ -439,8 +457,11 @@ ramips_board_detect() {
        *"V22RW-2X2")
                name="v22rw-2x2"
                ;;
-       *"VoCore")
-               name="vocore"
+       *"VoCore (8M)")
+               name="vocore-8M"
+               ;;
+       *"VoCore (16M)")
+               name="vocore-16M"
                ;;
        *"VR500")
                name="vr500"
@@ -448,6 +469,9 @@ ramips_board_detect() {
        *"W150M")
                name="w150m"
                ;;
+       *"W2914NS v2")
+               name="w2914nsv2"
+               ;;
        *"W306R V2.0")
                name="w306r-v20"
                ;;
@@ -496,9 +520,15 @@ ramips_board_detect() {
        *"WL-351 v1 002")
                name="wl-351"
                ;;
+       *"WL-WN575A3")
+               name="wl-wn575a3"
+               ;;
        *"WLI-TX4-AG300N")
                name="wli-tx4-ag300n"
                ;;
+       *"WLR-6000")
+               name="wlr-6000"
+               ;;
        *"WMR-300")
                name="wmr-300"
                ;;
@@ -535,8 +565,11 @@ ramips_board_detect() {
        *"WT1520")
                name="wt1520"
                ;;
-       *"WT3020")
-               name="wt3020"
+       *"WT3020 (4M)")
+               name="wt3020-4M"
+               ;;
+       *"WT3020 (8M)")
+               name="wt3020-8M"
                ;;
        *"WZR-AGL300NH")
                name="wzr-agl300nh"
@@ -574,6 +607,15 @@ ramips_board_detect() {
        *"ZBT-WR8305RT")
                name="zbt-wr8305rt"
                ;;
+       *"ZyXEL Keenetic Omni")
+               name="kn_rc"
+               ;;
+       *"ZyXEL Keenetic Omni II")
+               name="kn_rf"
+               ;;
+       *"ZyXEL Keenetic Viva")
+               name="kng_rc"
+               ;;
        *"YK1")
                name="youku-yk1"
                ;;
@@ -597,5 +639,5 @@ ramips_board_name() {
        [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
        [ -z "$name" ] && name="unknown"
 
-       echo "$name"
+       echo "${name%-[0-9]*M}"
 }