mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-24 13:28:33 +00:00
fix v1/v4 bug in diag driver
SVN-Revision: 1969
This commit is contained in:
parent
208236a70e
commit
89d9a533ee
@ -170,8 +170,8 @@ static int __init diag_init()
|
|||||||
set_diag=ignore;
|
set_diag=ignore;
|
||||||
set_dmz=ignore;
|
set_dmz=ignore;
|
||||||
|
|
||||||
buf=nvram_get("boardrev");
|
buf=nvram_get("pmon_ver") ?: "";
|
||||||
if (((board_type & 0xf00) == 0x400) && strcmp(buf,"0x10")) {
|
if (((board_type & 0xf00) == 0x400) && (strncmp(buf, "CFE", 3) != 0)) {
|
||||||
buf=nvram_get("boardtype")?:"";
|
buf=nvram_get("boardtype")?:"";
|
||||||
if (!strcmp(buf,"bcm94710dev")) {
|
if (!strcmp(buf,"bcm94710dev")) {
|
||||||
buf=nvram_get("boardnum")?:"";
|
buf=nvram_get("boardnum")?:"";
|
||||||
|
Loading…
Reference in New Issue
Block a user