We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a72a14 commit 36a29feCopy full SHA for 36a29fe
1 file changed
resources/lua/startup.lua
@@ -79,6 +79,7 @@ local DreamShell = {
79
80
os.execute("env USER Default");
81
local path = os.getenv("PATH");
82
+ local time = os.time();
83
84
print(os.getenv("HOST") .. " " .. os.getenv("VERSION") .. "\n");
85
print(os.getenv("ARCH") .. ": " .. os.getenv("BOARD_ID") .. "\n");
@@ -105,6 +106,11 @@ local DreamShell = {
105
106
end
107
end);
108
109
+ -- RTC validity check and fix.
110
+ if time < 946684800 or time > 3471292800 then
111
+ os.execute("rtc --set --unix 1735689600");
112
+ end
113
+
114
self:InstallingApps(path .. "/apps");
115
self.initialized = true;
116
OpenApp(os.getenv("APP"));
0 commit comments