Browse Source

fix wr850g detection (#1936)

SVN-Revision: 9492
Felix Fietkau 18 years ago
parent
commit
9b486d6381
1 changed files with 2 additions and 1 deletions
  1. 2 1
      package/broadcom-diag/src/diag.c

+ 2 - 1
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];