diff options
-rw-r--r-- | cnd/src/cnd.c | 6 | ||||
-rw-r--r-- | cnd/src/cnd_event.cpp | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/cnd/src/cnd.c b/cnd/src/cnd.c index 5c3555b..a42cb9b 100644 --- a/cnd/src/cnd.c +++ b/cnd/src/cnd.c @@ -27,10 +27,10 @@ int main (int argc, char **argv) { char prop_value[PROPERTY_VALUE_MAX] = {'\0'}; - int len = property_get("persist.cne.UseCne", prop_value, "FALSE"); + int len = property_get("persist.cne.UseCne", prop_value, "none"); prop_value[len] = '\0'; - if((strcmp(prop_value, "TRUE") == 0) || - (strcmp(prop_value, "true") == 0)) + if((strcasecmp(prop_value, "vendor") == 0) || + (strcasecmp(prop_value, "reference") == 0)) { cnd_init(); cnd_startEventLoop(); diff --git a/cnd/src/cnd_event.cpp b/cnd/src/cnd_event.cpp index 2002242..519620d 100644 --- a/cnd/src/cnd_event.cpp +++ b/cnd/src/cnd_event.cpp @@ -152,11 +152,11 @@ int cnd_event_init() void* cneLibHandle; cneIntFnType cne_svc_init = NULL; char prop_value[PROPERTY_VALUE_MAX] = {'\0'}; - int len = property_get("persist.cne.loadVendorCne", prop_value, "FALSE"); + int len = property_get("persist.cne.UseCne", prop_value, "none"); prop_value[len] = '\0'; - if((strcmp(prop_value, "TRUE") == 0) ||(strcmp(prop_value, "true") == 0)) + if(strcasecmp(prop_value, "vendor") == 0) { - LOGI("loading cne library!!"); + LOGI("loading vendor cne library!!"); cneLibHandle = dlopen("/system/lib/libcne.so",RTLD_NOW); } else |