From: Felix Fietkau Date: Sat, 3 Nov 2007 16:17:53 +0000 (+0000) Subject: fix wr850g detection (#1936) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9b486d6381a73fe79745c182420e3aa78751f012;p=openwrt%2Fstaging%2Frobimarko.git fix wr850g detection (#1936) SVN-Revision: 9492 --- diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c index ef586baaed..35737b002f 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];