summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2015-03-16 11:52:16 +0000
committerJonas Gorski <jogo@openwrt.org>2015-03-16 11:52:16 +0000
commit9c53e344c0b2b773d6bd4c50948c3cb43715c8d6 (patch)
tree08f3236cfd9191f7a267c7014aaebac91ad8a096 /target
parentca7f6d28c8f811a1aa851554253304157f44256b (diff)
downloadmtk-20170518-9c53e344c0b2b773d6bd4c50948c3cb43715c8d6.zip
mtk-20170518-9c53e344c0b2b773d6bd4c50948c3cb43715c8d6.tar.gz
mtk-20170518-9c53e344c0b2b773d6bd4c50948c3cb43715c8d6.tar.bz2
brcm63xx: base-files: rename board_name to board_id
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
Diffstat (limited to 'target')
-rw-r--r--target/linux/brcm63xx/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom2
-rw-r--r--target/linux/brcm63xx/base-files/etc/uci-defaults/01_leds2
-rw-r--r--target/linux/brcm63xx/base-files/etc/uci-defaults/02_network2
-rw-r--r--target/linux/brcm63xx/base-files/etc/uci-defaults/09_fix_crc2
-rwxr-xr-xtarget/linux/brcm63xx/base-files/lib/brcm63xx.sh10
5 files changed, 9 insertions, 9 deletions
diff --git a/target/linux/brcm63xx/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom b/target/linux/brcm63xx/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
index 2d8f1f5..23e9b4f 100644
--- a/target/linux/brcm63xx/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
+++ b/target/linux/brcm63xx/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
@@ -26,7 +26,7 @@ rt2x00_eeprom_extract() {
. /lib/brcm63xx.sh
-board=$board_name
+board=$board_id
case "$FIRMWARE" in
"rt2x00.eeprom" )
diff --git a/target/linux/brcm63xx/base-files/etc/uci-defaults/01_leds b/target/linux/brcm63xx/base-files/etc/uci-defaults/01_leds
index 69d797e..441dc68 100644
--- a/target/linux/brcm63xx/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/brcm63xx/base-files/etc/uci-defaults/01_leds
@@ -6,7 +6,7 @@
. /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"
diff --git a/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network b/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network
index 6b9736a..b41ee7e 100644
--- a/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network
+++ b/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network
@@ -12,7 +12,7 @@ touch /etc/config/network
ucidef_set_interface_loopback
-case "$board_name" in
+case "$board_id" in
96348W3 |\
96358-502V |\
diff --git a/target/linux/brcm63xx/base-files/etc/uci-defaults/09_fix_crc b/target/linux/brcm63xx/base-files/etc/uci-defaults/09_fix_crc
index 2840eb1..c1c0194 100644
--- a/target/linux/brcm63xx/base-files/etc/uci-defaults/09_fix_crc
+++ b/target/linux/brcm63xx/base-files/etc/uci-defaults/09_fix_crc
@@ -12,7 +12,7 @@ do_fixcrc() {
brcm63xx_detect
-case "$board_name" in
+case "$board_id" in
96328avng |\
96328A-1241N |\
96328A-1441N1 |\
diff --git a/target/linux/brcm63xx/base-files/lib/brcm63xx.sh b/target/linux/brcm63xx/base-files/lib/brcm63xx.sh
index 55e6796..e1d52c2 100755
--- a/target/linux/brcm63xx/base-files/lib/brcm63xx.sh
+++ b/target/linux/brcm63xx/base-files/lib/brcm63xx.sh
@@ -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