mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Fix poor firstboot.flag naming
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
#include <toolbox/tar/tar_archive.h>
|
||||
#include <toolbox/crc32_calc.h>
|
||||
|
||||
#define FIRSTBOOT_FLAG_PATH CFG_PATH("firstboot.flag")
|
||||
#define FIRSTBOOT_FLAG_PATH CFG_PATH("momentum_firstboot.flag")
|
||||
|
||||
#define TAG "UpdWorkerBackup"
|
||||
|
||||
@@ -205,6 +205,10 @@ static bool update_task_post_update(UpdateTask* update_task) {
|
||||
update_task_set_progress(update_task, UpdateTaskStageSplashscreenInstall, 0);
|
||||
FuriString* tmp_path;
|
||||
tmp_path = furi_string_alloc_set(update_task->update_path);
|
||||
storage_common_rename(
|
||||
update_task->storage,
|
||||
CFG_PATH("firstboot.flag"), // Poor naming, shouldn't be generic for all FW
|
||||
FIRSTBOOT_FLAG_PATH);
|
||||
if(storage_common_stat(update_task->storage, FIRSTBOOT_FLAG_PATH, NULL) ==
|
||||
FSE_NOT_EXIST) {
|
||||
File* file = storage_file_alloc(update_task->storage);
|
||||
|
||||
Reference in New Issue
Block a user