mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
update: fix marker for current partition in new partition layout
Origin commit data
------------------
Commit: f91179fb0f
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-05-12 (Sun, 12 May 2019)
Origin message was:
------------------
- update: fix marker for current partition in new partition layout
This commit is contained in:
@@ -645,6 +645,8 @@ int CFlashUpdate::exec(CMenuTarget* parent, const std::string &actionKey)
|
|||||||
if (fseek(f, -2, SEEK_END) == 0)
|
if (fseek(f, -2, SEEK_END) == 0)
|
||||||
{
|
{
|
||||||
c[0] = fgetc(f);
|
c[0] = fgetc(f);
|
||||||
|
if (strcmp(c, "l") == 0)
|
||||||
|
c[0] = '1';
|
||||||
dprintf(DEBUG_NORMAL, "[update] Current partition: %s\n", c);
|
dprintf(DEBUG_NORMAL, "[update] Current partition: %s\n", c);
|
||||||
}
|
}
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
Reference in New Issue
Block a user