From: Felix Fietkau Date: Mon, 13 Nov 2006 18:22:05 +0000 (+0000) Subject: improve accuracy of the diag detection of the wrt54g3g X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=de1448632958ec1b2fd0a98352bfdc4d0aa7cb74;p=openwrt%2Fsvn-archive%2Farchive.git improve accuracy of the diag detection of the wrt54g3g SVN-Revision: 5521 --- diff --git a/openwrt/target/linux/package/diag/src/diag.c b/openwrt/target/linux/package/diag/src/diag.c index 6f232f333e..f1812b2b55 100644 --- a/openwrt/target/linux/package/diag/src/diag.c +++ b/openwrt/target/linux/package/diag/src/diag.c @@ -400,7 +400,7 @@ static struct platform_t __init *platform_detect(void) if (strncmp(getvar("pmon_ver"), "CFE", 3) == 0) { /* CFE based - newer hardware */ if (!strcmp(boardnum, "42")) { /* Linksys */ - if (!strcmp(boardtype, "0x0101")) + if (!strcmp(boardtype, "0x0101") && !strcmp(getvar("boot_ver"), "v3.6")) return &platforms[WRT54G3G]; if (!strcmp(getvar("et1phyaddr"),"5") && !strcmp(getvar("et1mdcport"), "1"))