move creation of /tmp/.flash.start to update code

Origin commit data
------------------
Commit: c5b2772226
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-03-12 (Fri, 12 Mar 2021)

Origin message was:
------------------
- move creation of /tmp/.flash.start to update code
This commit is contained in:
vanhofen
2021-03-12 20:37:06 +01:00
parent f3eefcfa94
commit fd14fc5b00
3 changed files with 8 additions and 3 deletions

View File

@@ -733,6 +733,9 @@ int CFlashUpdate::exec(CMenuTarget* parent, const std::string &actionKey)
#ifndef DRYRUN
if (flashing)
{
if ( FILE *f = fopen("/tmp/.flash.start", "w") )
fclose(f);
CVFD::getInstance()->setMode(CVFD::MODE_MENU_UTF8);
CVFD::getInstance()->showMenuText(0, "ofgwrite Flashing Tool", -1, true);
my_system(4, ofgwrite_caller.c_str(), g_settings.update_dir.c_str(), filename.c_str(), ofgwrite_options.c_str());