aboutsummaryrefslogtreecommitdiffstats
path: root/package/broadcom-diag/src
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-11-16 03:11:09 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-11-16 03:11:09 +0000
commit45fb09db51a10d04cd796d4ec7907cc349ad240d (patch)
treee2f891446f52601b4a56457646ce4361031c52fe /package/broadcom-diag/src
parent77a96c54371bb0f47d2e0d187b53b1b7dc63e885 (diff)
downloadmaster-187ad058-45fb09db51a10d04cd796d4ec7907cc349ad240d.tar.gz
master-187ad058-45fb09db51a10d04cd796d4ec7907cc349ad240d.tar.bz2
master-187ad058-45fb09db51a10d04cd796d4ec7907cc349ad240d.zip
fix adm switch misdetection, which led to bogus button events that caused the system to shut down
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9555 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/broadcom-diag/src')
-rw-r--r--package/broadcom-diag/src/diag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c
index c7b3ead363..94ab384d30 100644
--- a/package/broadcom-diag/src/diag.c
+++ b/package/broadcom-diag/src/diag.c
@@ -738,7 +738,7 @@ static struct platform_t __init *platform_detect(void)
return &platforms[WR850GV2V3];
}
- if (!strcmp(boardnum, "44")) { /* Trendware TEW-411BRP+ */
+ if (!strcmp(boardnum, "44") && !strcmp(getvar("boardflags"),"0x0388")) { /* Trendware TEW-411BRP+ */
return &platforms[TEW411BRPP];
}