Rename board_name to board_id to prepare for using board_name as a
proper name for the board.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 44832
. /lib/brcm63xx.sh
-board=$board_name
+board=$board_id
case "$FIRMWARE" in
"rt2x00.eeprom" )
. /lib/functions/uci-defaults.sh
. /lib/brcm63xx.sh
-case "$board_name" in
+case "$board_id" in
963281T_TEF)
ucidef_set_led_netdev "lan" "LAN" "A4001N1:green:eth" "eth0"
ucidef_set_led_usbdev "usb" "USB" "A4001N1:green:3g" "1-1"
ucidef_set_interface_loopback
-case "$board_name" in
+case "$board_id" in
96348W3 |\
96358-502V |\
brcm63xx_detect
-case "$board_name" in
+case "$board_id" in
96328avng |\
96328A-1241N |\
96328A-1441N1 |\
#
#
-board_name=""
+board_id=""
status_led=""
status_led2=""
sys_mtd_part=""
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