brcm63xx: base-files: rename board_name to board_id
[openwrt/openwrt.git] / target / linux / brcm63xx / base-files / lib / brcm63xx.sh
index d5784db750df019cb7f536b3e7429cd568200e71..e1d52c2e27a090d0eae898565e7d7975a95f489b 100755 (executable)
@@ -4,7 +4,7 @@
 #
 #
 
-board_name=""
+board_id=""
 status_led=""
 status_led2=""
 sys_mtd_part=""
@@ -12,13 +12,13 @@ brcm63xx_has_reset_button=""
 ifname=""
 
 brcm63xx_detect() {
-       board_name=$(awk 'BEGIN{FS="[ \t:/]+"} /system type/ {print $4}' /proc/cpuinfo)
+       board_id=$(awk 'BEGIN{FS="[ \t:/]+"} /system type/ {print $4}' /proc/cpuinfo)
 
-       if [ "$board_name" = "96358VW" ] && [ -n "$(swconfig dev eth1 help 2>/dev/null)" ]; then
-               board_name="DVAG3810BN"
+       if [ "$board_id" = "96358VW" ] && [ -n "$(swconfig dev eth1 help 2>/dev/null)" ]; then
+               board_id="DVAG3810BN"
        fi
 
-       case "$board_name" in
+       case "$board_id" in
        963281TAN)
                status_led="963281TAN::power"
                ifname=eth0
@@ -32,6 +32,11 @@ brcm63xx_detect() {
                status_led="96328avng::power"
                ifname=eth0
                ;;
+       96328dg2x2)
+               brcm63xx_has_reset_button="true"
+               status_led="A4001N:green:power"
+               ifname="eth0"
+               ;;
        96328A-1241N)
                brcm63xx_has_reset_button="true"
                status_led="AR-5381u:green:power"
@@ -82,6 +87,11 @@ brcm63xx_detect() {
                brcm63xx_has_reset_button="true"
                ifname=eth0
                ;;
+       AW5200B)
+               status_led="dsl-275xb:green:power"
+               brcm63xx_has_reset_button="true"
+               ifname=eth0
+               ;;
        CPVA642)
                status_led="CPVA642:green:power:"
                brcm63xx_has_reset_button="true"
@@ -101,6 +111,11 @@ brcm63xx_detect() {
                brcm63xx_has_reset_button="true"
                ifname=eth0
                ;;
+       DGND3700v1_3800B)
+               status_led="DGND3700v1_3800B:green:power"
+               brcm63xx_has_reset_button="true"
+               ifname="eth0"
+               ;;
        "F@ST2504n")
                status_led="fast2504n:green:ok"
                brcm63xx_has_reset_button="true"