ramips: add support for Asus RT-AC51U
[openwrt/openwrt.git] / target / linux / ramips / base-files / lib / ramips.sh
index 5800aacd82858f0448d5c4de5e082baf42964f8a..4213159378503d4ac43b06ffc4f85a9ef9e834ff 100755 (executable)
@@ -130,9 +130,6 @@ ramips_board_detect() {
        *"DCS-930L B1")
                name="dcs-930l-b1"
                ;;
-       *"Digineo AC1200 Pro")
-               name="ac1200pro"
-               ;;
        *"DIR-300 B1")
                name="dir-300-b1"
                ;;
@@ -184,9 +181,15 @@ ramips_board_detect() {
        *"ESR-9753")
                name="esr-9753"
                ;;
+       *"EW1200")
+               name="ew1200"
+               ;;
        *"EX2700")
                name="ex2700";
                ;;
+       *"EX3700")
+               name="ex3700"
+               ;;
        *"F5D8235 v1")
                name="f5d8235-v1"
                ;;
@@ -226,6 +229,9 @@ ramips_board_detect() {
        *"HC5861")
                name="hc5861"
                ;;
+       *"HC5962")
+               name="hc5962"
+               ;;
        *"HG255D")
                name="hg255d"
                ;;
@@ -388,8 +394,11 @@ ramips_board_detect() {
        *"PSG1208")
                name="psg1208"
                ;;
-       *"PSG1218")
-               name="psg1218"
+       *"PSG1218 rev.A")
+               name="psg1218a"
+               ;;
+       *"PSG1218 rev.B")
+               name="psg1218b"
                ;;
        *"PSR-680W"*)
                name="psr-680w"
@@ -406,6 +415,9 @@ ramips_board_detect() {
        *"Q7")
                name="zte-q7"
                ;;
+       *"R6220")
+               name="r6220"
+               ;;
        *"RB750Gr3")
                name="rb750gr3"
                ;;
@@ -424,6 +436,9 @@ ramips_board_detect() {
        *"RT5350F-OLinuXino-EVB")
                name="rt5350f-olinuxino-evb"
                ;;
+       *"RT-AC51U")
+               name="rt-ac51u"
+               ;;
        *"RT-G32 B1")
                name="rt-g32-b1"
                ;;
@@ -634,18 +649,33 @@ ramips_board_detect() {
        *"ZBT-WA05")
                name="zbt-wa05"
                ;;
-       *"ZBT-WE826")
-               name="zbt-we826"
+       *"ZBT-WE1326")
+               name="zbt-we1326"
+               ;;
+       *"ZBT-WE2026")
+               name="zbt-we2026"
+               ;;
+       *"ZBT-WE826 (16M)")
+               name="zbt-we826-16M"
+               ;;
+       *"ZBT-WE826 (32M)")
+               name="zbt-we826-32M"
                ;;
        *"ZBT-WG2626")
                name="zbt-wg2626"
                ;;
-       *"ZBT-WG3526")
-               name="zbt-wg3526"
+       *"ZBT-WG3526 (16M)")
+               name="zbt-wg3526-16M"
+               ;;
+       *"ZBT-WG3526 (32M)")
+               name="zbt-wg3526-32M"
                ;;
        *"ZBT-WR8305RT")
                name="zbt-wr8305rt"
                ;;
+       *"ZyXEL Keenetic")
+               name="kn"
+               ;;
        *"ZyXEL Keenetic Omni")
                name="kn_rc"
                ;;
@@ -678,5 +708,5 @@ ramips_board_name() {
        [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
        [ -z "$name" ] && name="unknown"
 
-       echo "${name%-[0-9]*M}"
+       echo "${name}"
 }