summaryrefslogtreecommitdiff
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
commit89d9a533ee32bc0b0eac7ff7666d0a116b3678af (patch)
treeac81205a613d1b86aedce5ae39bd113ca7fe91d6
parent208236a70e305a127a1cd3275eb06f44746c4250 (diff)
downloadmtk-20170518-89d9a533ee32bc0b0eac7ff7666d0a116b3678af.zip
mtk-20170518-89d9a533ee32bc0b0eac7ff7666d0a116b3678af.tar.gz
mtk-20170518-89d9a533ee32bc0b0eac7ff7666d0a116b3678af.tar.bz2
fix v1/v4 bug in diag driver
SVN-Revision: 1969
-rw-r--r--openwrt/target/linux/package/diag/diag_led.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openwrt/target/linux/package/diag/diag_led.c b/openwrt/target/linux/package/diag/diag_led.c
index cc2bc8a..8d4acd5 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")?:"";