mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-09 08:35:19 +02:00
d26482830e
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
39 lines
622 B
Bash
Executable File
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
|