land: init: Ensure we're running on the correct device
Change-Id: I2c5d5bf9fbdb0fbb7b4e042199d497a3e4be795b
This commit is contained in:
parent
df8dde6344
commit
3e75ba2f22
1 changed files with 7 additions and 0 deletions
|
@ -109,6 +109,13 @@ static void init_alarm_boot_properties()
|
||||||
|
|
||||||
void vendor_load_properties()
|
void vendor_load_properties()
|
||||||
{
|
{
|
||||||
|
char device[PROP_VALUE_MAX];
|
||||||
|
int rc;
|
||||||
|
|
||||||
|
rc = property_get("ro.cm.device", device);
|
||||||
|
if (!rc || strncmp(device, "land", PROP_VALUE_MAX))
|
||||||
|
return;
|
||||||
|
|
||||||
import_kernel_cmdline(0, import_cmdline);
|
import_kernel_cmdline(0, import_cmdline);
|
||||||
|
|
||||||
property_set("ro.product.wt.boardid", board_id);
|
property_set("ro.product.wt.boardid", board_id);
|
||||||
|
|
Loading…
Reference in a new issue