From 758e452dc776cfcdbc8d714f3d5af64428276f7e Mon Sep 17 00:00:00 2001 From: nbd Date: Thu, 22 Sep 2005 01:32:36 +0000 Subject: fix v1/v4 bug in diag driver git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1969 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/package/diag/diag_led.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'target') diff --git a/target/linux/package/diag/diag_led.c b/target/linux/package/diag/diag_led.c index cc2bc8a24..8d4acd549 100644 --- a/target/linux/package/diag/diag_led.c +++ b/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")?:""; -- cgit v1.2.3