From 6630c7f4a59a6bb88c276833471ea9f3e4c1f1ec Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 22 Sep 2005 01:32:36 +0000 Subject: [PATCH] fix v1/v4 bug in diag driver SVN-Revision: 1969 --- .../target/linux/linux-2.4/patches/brcm/005-diag_led.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openwrt/target/linux/linux-2.4/patches/brcm/005-diag_led.patch b/openwrt/target/linux/linux-2.4/patches/brcm/005-diag_led.patch index e827906ed5..e50a27e6b9 100644 --- a/openwrt/target/linux/linux-2.4/patches/brcm/005-diag_led.patch +++ b/openwrt/target/linux/linux-2.4/patches/brcm/005-diag_led.patch @@ -203,8 +203,8 @@ diff -urN linux-2.4.30.dev/drivers/net/diag/diag_led.c linux-2.4.30.dev2/drivers + 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")?:""; -- 2.30.2