1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-09 08:35:19 +02:00
openwrt-xburst/target/linux/brcm63xx/base-files/lib/brcm63xx.sh
cshore d26482830e 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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24188 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-28 22:04:36 +00:00

39 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