ssize_t ret = 0;
if (key != NULL && value != NULL) {
- if (strcmp(value, "yes") == 0) {
+ if (strcasecmp(value, "yes") == 0 ||
+ strcasecmp(value, "true") == 0 ||
+ strcmp(value, "1") == 0) {
buf = g_strdup_printf("%s\n", key);
ret = full_write(fd, buf, strlen(buf));
const char *key, const char *value)
{
if (key != NULL && value != NULL) {
- if (strcmp(value, "yes") == 0)
+ if (strcasecmp(value, "yes") == 0 ||
+ strcasecmp(value, "true") == 0 ||
+ strcmp(value, "1") == 0)
connman_task_add_argument(task, key, NULL);
}
}
ssize_t ret = 0;
if (key != NULL && value != NULL) {
- if (strcmp(value, "yes") == 0) {
+ if (strcasecmp(value, "yes") == 0 ||
+ strcasecmp(value, "true") == 0 ||
+ strcmp(value, "1") == 0) {
buf = g_strdup_printf("%s\n", key);
ret = full_write(fd, buf, strlen(buf));