land: init: Ensure we're running on the correct device

Change-Id: I2c5d5bf9fbdb0fbb7b4e042199d497a3e4be795b
This commit is contained in:
Zhao Wei Liew 2016-11-07 08:42:29 +08:00
parent df8dde6344
commit 3e75ba2f22

View file

@ -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);