1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-30 18:14:04 +02:00

[package] broadcom-diag: add missing brackets breakign the detection logic (#10836)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30610 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2012-02-17 09:04:23 +00:00
parent e01799a285
commit 7adfa6c810

View File

@ -1142,17 +1142,19 @@ static struct platform_t __init *platform_detect(void)
return &platforms[WRTSL54GS]; return &platforms[WRTSL54GS];
if (!strcmp(boardtype, "0x0472")) { if (!strcmp(boardtype, "0x0472")) {
if(!strcmp(getvar("boot_hw_model"), "WRT150N")) if(!strcmp(getvar("boot_hw_model"), "WRT150N")) {
if(!strcmp(getvar("boot_hw_ver"), "1")) if(!strcmp(getvar("boot_hw_ver"), "1"))
return &platforms[WRT150NV1]; return &platforms[WRT150NV1];
else if(!strcmp(getvar("boot_hw_ver"), "1.1")) else if(!strcmp(getvar("boot_hw_ver"), "1.1"))
return &platforms[WRT150NV11]; return &platforms[WRT150NV11];
else if(!strcmp(getvar("boot_hw_model"), "WRT160N")) }
else if(!strcmp(getvar("boot_hw_model"), "WRT160N")) {
if(!strcmp(getvar("boot_hw_ver"), "1.0")) if(!strcmp(getvar("boot_hw_ver"), "1.0"))
return &platforms[WRT160NV1]; return &platforms[WRT160NV1];
else if(!strcmp(getvar("boot_hw_ver"), "3.0")) else if(!strcmp(getvar("boot_hw_ver"), "3.0"))
return &platforms[WRT160NV3]; return &platforms[WRT160NV3];
} }
}
/* default to WRT54G */ /* default to WRT54G */
return &platforms[WRT54G]; return &platforms[WRT54G];