From adec517397c7c9af872f8f263638e33b95d51c04 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 13 Nov 2006 18:22:05 +0000 Subject: [PATCH] improve accuracy of the diag detection of the wrt54g3g SVN-Revision: 5521 --- openwrt/target/linux/package/diag/src/diag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")) -- 2.30.2