diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-03-14 01:19:24 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-03-14 01:19:24 +0000 |
commit | bf622ab0ae504d01ca9f589b8d67d3902c068133 (patch) | |
tree | 5b8dd8a0a870acf6299164257269e34512abdff3 /package/broadcom-diag/src/diag.c | |
parent | 40c03084c2c8f842329fc7dd84648935055b4d25 (diff) | |
download | master-31e0f0ae-bf622ab0ae504d01ca9f589b8d67d3902c068133.tar.gz master-31e0f0ae-bf622ab0ae504d01ca9f589b8d67d3902c068133.tar.bz2 master-31e0f0ae-bf622ab0ae504d01ca9f589b8d67d3902c068133.zip |
add diag and switch support for brcm47xx-2.6
SVN-Revision: 6562
Diffstat (limited to 'package/broadcom-diag/src/diag.c')
-rw-r--r-- | package/broadcom-diag/src/diag.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c index 5b9ff027f2..a47d13993d 100644 --- a/package/broadcom-diag/src/diag.c +++ b/package/broadcom-diag/src/diag.c @@ -539,8 +539,11 @@ static struct platform_t __init *platform_detect(void) boardnum = getvar("boardnum"); boardtype = getvar("boardtype"); - if (strncmp(getvar("model_no"), "WL700",5) == 0) { - return &platforms[WL700GE]; } + if (strcmp(getvar("nvram_type"), "cfe") == 0) + return &platforms[WGT634U]; + + if (strncmp(getvar("model_no"), "WL700",5) == 0) + return &platforms[WL700GE]; if (strncmp(getvar("pmon_ver"), "CFE", 3) == 0) { /* CFE based - newer hardware */ |