bcm63xx: use the exact board id as board identification string
[openwrt/svn-archive/archive.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:/]+"} /system type/ {print $4}' /proc/cpuinfo)
15
16 case "$board_name" in
17 96348GW)
18 status_led="power"
19 brcm63xx_has_reset_button="true"
20 ifname=eth1
21 ;;
22 GW6000)
23 brcm63xx_has_reset_button="true"
24 ifname=eth1
25 ;;
26 GW6200)
27 status_led="line1"
28 status_led2="tel"
29 brcm63xx_has_reset_button="true"
30 ifname=eth1
31 ;;
32 96348GW-11)
33 status_led="power"
34 brcm63xx_has_reset_button="true"
35 ifname=eth1
36 ;;
37 CT536_CT5621)
38 status_led="power"
39 brcm63xx_has_reset_button="true"
40 ifname=eth0
41 ;;
42 SPW500V)
43 status_led="power:green"
44 brcm63xx_has_reset_button="true"
45 ifname=eth0
46 ;;
47 AW4139)
48 status_led="dsl-274xb:green:power"
49 brcm63xx_has_reset_button="true"
50 ifname=eth0
51 ;;
52 96358-502V)
53 status_led="spw303v:green:power+adsl"
54 brcm63xx_has_reset_button="true"
55 ifname=eth0
56 ;;
57 V2110)
58 status_led="V2110:power:green"
59 brcm63xx_has_reset_button="true"
60 ifname=eth0
61 ;;
62 CPVA642)
63 status_led="power:green"
64 brcm63xx_has_reset_button="true"
65 ifname=eth0
66 ;;
67 D-4P-W)
68 status_led="power:green"
69 brcm63xx_has_reset_button="true"
70 ifname=eth0
71 ;;
72 *)
73 ;;
74 esac
75 }
76
77 brcm63xx_detect