openwrtv4/target/linux/brcm63xx/base-files/lib/brcm63xx.sh
Daniel Dickinson c51d772e62 bcm63xx: Finalize support for DSL-274xB, rev C2.
The DSL-2740B/DSL-2741B rev C2 support was missing the board definition,
resulting in a kernel panic on boot.
This patch adds it, and also renames the generated image name to properly
reflect that it is for the revision C2, and for both the DSL-2740B and
DSL-2741B.

Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com>

SVN-Revision: 24188
2010-11-28 22:04:36 +00:00

38 lines
622 B
Bash
Executable file

#!/bin/sh
#
# Copyright (C) 2007 OpenWrt.org
#
#
board_name=""
status_led=""
status_led2=""
sys_mtd_part=""
brcm63xx_has_reset_button=""
brcm63xx_detect() {
board_name=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /system type/ {print $2}' /proc/cpuinfo)
case "$board_name" in
"bcm63xx/96348GW "*)
status_led="tel"
status_led2="line1"
brcm63xx_has_reset_button="true"
ifname=eth1
;;
"bcm63xx/96348GW-11 "*)
status_led="power"
brcm63xx_has_reset_button="true"
ifname=eth1
;;
"bcm63xx/96358GW "*)
status_led="power:green"
brcm63xx_has_reset_button="true"
ifname=eth0
;;
*)
;;
esac
}
brcm63xx_detect