From: Felix Fietkau Date: Thu, 22 Sep 2005 01:32:36 +0000 (+0000) Subject: fix v1/v4 bug in diag driver X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=39fa5feabb3c8a85174a43428686fd0e4dccf8ef;p=openwrt%2Fsvn-archive%2Farchive.git fix v1/v4 bug in diag driver SVN-Revision: 1969 --- diff --git a/openwrt/target/linux/package/diag/diag_led.c b/openwrt/target/linux/package/diag/diag_led.c index cc2bc8a24e..8d4acd549f 100644 --- a/openwrt/target/linux/package/diag/diag_led.c +++ b/openwrt/target/linux/package/diag/diag_led.c @@ -170,8 +170,8 @@ static int __init diag_init() set_diag=ignore; set_dmz=ignore; - buf=nvram_get("boardrev"); - if (((board_type & 0xf00) == 0x400) && strcmp(buf,"0x10")) { + buf=nvram_get("pmon_ver") ?: ""; + if (((board_type & 0xf00) == 0x400) && (strncmp(buf, "CFE", 3) != 0)) { buf=nvram_get("boardtype")?:""; if (!strcmp(buf,"bcm94710dev")) { buf=nvram_get("boardnum")?:"";