diff --git a/src/main.cpp b/src/main.cpp index 1c444c33dc..d9f4818776 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -447,6 +447,9 @@ void setup() std::string timeCommandResult = exec("timedatectl status | grep synchronized | grep yes -c"); if (timeCommandResult[0] == '1') { ourQuality = RTCQualityNTP; + } else if (access("/var/state/dnsmasqsec", F_OK) == 0) { + // OpenWrt marks the system time as valid after successful NTP synchronization. + ourQuality = RTCQualityNTP; } #endif