aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-09-22 01:32:36 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-09-22 01:32:36 +0000
commit067dd6ea6bafdc12d79b041c3b2676edcc0fce5d (patch)
tree9310983cde90c8df567fe7cbee17cde95e83b51e /target/linux
parent023b9ce60553db4d6f6c4e1ae2e7251791f504af (diff)
downloadmaster-187ad058-067dd6ea6bafdc12d79b041c3b2676edcc0fce5d.tar.gz
master-187ad058-067dd6ea6bafdc12d79b041c3b2676edcc0fce5d.tar.bz2
master-187ad058-067dd6ea6bafdc12d79b041c3b2676edcc0fce5d.zip
fix v1/v4 bug in diag driver
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1969 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/package/diag/diag_led.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/package/diag/diag_led.c b/target/linux/package/diag/diag_led.c
index cc2bc8a24e..8d4acd549f 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")?:"";