r2p: Update r2p payload

2 modes:
- With updater2p; Forces the reboot to payload binary to be hekate
- Without; Checks if hekate and then if old
This commit is contained in:
CTCaer
2019-12-12 00:13:32 +02:00
parent 87d376654b
commit a664118fc7
9 changed files with 48 additions and 3 deletions

View File

@@ -862,6 +862,8 @@ static void _auto_launch_firmware()
h_cfg.autohosoff = atoi(kv->val);
else if (!strcmp("autonogc", kv->key))
h_cfg.autonogc = atoi(kv->val);
else if (!strcmp("updater2p", kv->key))
h_cfg.updater2p = atoi(kv->val);
else if (!strcmp("brand", kv->key))
{
h_cfg.brand = malloc(strlen(kv->val) + 1);