From a9bfa187f200baf9221e78a532aba5ad5379725d Mon Sep 17 00:00:00 2001 From: nbd Date: Sat, 3 Nov 2007 16:17:53 +0000 Subject: fix wr850g detection (#1936) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9492 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/broadcom-diag/src/diag.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'package/broadcom-diag/src') diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c index ef586baae..35737b002 100644 --- a/package/broadcom-diag/src/diag.c +++ b/package/broadcom-diag/src/diag.c @@ -713,7 +713,8 @@ static struct platform_t __init *platform_detect(void) return &platforms[BUFFALO_UNKNOWN]; } - if (!strcmp(getvar("CFEver"), "MotoWRv203") || + if (!strncmp(getvar("CFEver"), "MotoWRv2", 8) || + !strncmp(getvar("CFEver"), "MotoWRv3", 8) || !strcmp(getvar("MOTO_BOARD_TYPE"), "WR_FEM1")) { return &platforms[WR850GV2V3]; -- cgit v1.2.3