diff options
author | Jonas Gorski <jogo@openwrt.org> | 2015-03-16 11:52:16 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2015-03-16 11:52:16 +0000 |
commit | e3c5eb138f42a4941116d0f14bd9a451da2d5dab (patch) | |
tree | 84641e44d4a0ae2cb9e1ba02131206e6662eb775 /target/linux/brcm63xx/base-files/lib | |
parent | 83842af3475ff22cce2391b7a6a8fdffad5641a1 (diff) | |
download | master-187ad058-e3c5eb138f42a4941116d0f14bd9a451da2d5dab.tar.gz master-187ad058-e3c5eb138f42a4941116d0f14bd9a451da2d5dab.tar.bz2 master-187ad058-e3c5eb138f42a4941116d0f14bd9a451da2d5dab.zip |
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44832 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm63xx/base-files/lib')
-rwxr-xr-x | target/linux/brcm63xx/base-files/lib/brcm63xx.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/target/linux/brcm63xx/base-files/lib/brcm63xx.sh b/target/linux/brcm63xx/base-files/lib/brcm63xx.sh index 55e6796431..e1d52c2e27 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 |