Read zone_nr from system_data

This commit is contained in:
Siegfried Siegert 2025-02-04 14:44:28 +01:00
parent e6d8c04076
commit a3f4a742ce
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -396,7 +396,7 @@ int CALCULATE_LIBRARY_API get_zone_nr(int zone)
if(zone > -1) return zone;
else
{
QFile zone("/etc/zone_nr");
QFile zone("/mnt/system_data/zone_nr");
if (zone.exists()) {
QFileInfo finfo(zone);
if (finfo.size() <= 4) { // decimal 000\n