Remove patch 140-new_bcm96348gw_leds because it is really the GW6200 leds, not the...
[openwrt/openwrt.git] / target / linux / brcm63xx / base-files / lib / brcm63xx.sh
1 #!/bin/sh
2 #
3 # Copyright (C) 2007 OpenWrt.org
4 #
5 #
6
7 board_name=""
8 status_led=""
9 status_led2=""
10 sys_mtd_part=""
11 brcm63xx_has_reset_button=""
12
13 brcm63xx_detect() {
14 board_name=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /system type/ {print $2}' /proc/cpuinfo)
15
16 case "$board_name" in
17 "bcm63xx/96348GW "*)
18 status_led="power"
19 brcm63xx_has_reset_button="true"
20 ifname=eth1
21 ;;
22 "bcm63xx/96348GW-11 "*)
23 status_led="power"
24 brcm63xx_has_reset_button="true"
25 ifname=eth1
26 ;;
27 "bcm63xx/96358GW "* | "bcm63xx/SPW500V "*)
28 status_led="power:green"
29 brcm63xx_has_reset_button="true"
30 ifname=eth0
31 ;;
32 "bcm63xx/CPVA642 "* )
33 status_led="power:green"
34 brcm63xx_has_reset_button="true"
35 ifname=eth0
36 ;;
37 *)
38 ;;
39 esac
40 }
41
42 brcm63xx_detect