diff --git a/bdk/utils/ini.c b/bdk/utils/ini.c index bc0afc5..7e13ff3 100644 --- a/bdk/utils/ini.c +++ b/bdk/utils/ini.c @@ -173,14 +173,16 @@ int ini_parse(link_t *dst, char *ini_path, bool is_dir) return 1; } -char *ini_check_payload_section(ini_sec_t *cfg) +char *ini_check_special_section(ini_sec_t *cfg) { if (cfg == NULL) return NULL; LIST_FOREACH_ENTRY(ini_kv_t, kv, &cfg->kvs, link) { - if (!strcmp("payload", kv->key)) + if (!strcmp("l4t", kv->key)) + return ((kv->val[0] == '1') ? (char *)-1 : NULL); + else if (!strcmp("payload", kv->key)) return kv->val; } diff --git a/bdk/utils/ini.h b/bdk/utils/ini.h index 9482d33..929a850 100644 --- a/bdk/utils/ini.h +++ b/bdk/utils/ini.h @@ -44,7 +44,7 @@ typedef struct _ini_sec_t } ini_sec_t; int ini_parse(link_t *dst, char *ini_path, bool is_dir); -char *ini_check_payload_section(ini_sec_t *cfg); +char *ini_check_special_section(ini_sec_t *cfg); void ini_free(link_t *src); #endif