Panel - init

This commit is contained in:
Rick Lan
2025-04-09 12:10:47 +08:00
parent 461109b4f6
commit e2cc9945df
6 changed files with 333 additions and 2 deletions
+3 -1
View File
@@ -165,8 +165,10 @@ def manager_thread() -> None:
# Exit main loop when uninstall/shutdown/reboot is needed
shutdown = False
for param in ("DoUninstall", "DoShutdown", "DoReboot"):
for param in ("DoUninstall", "DoShutdown", "DoReboot", "dp_device_reset_conf"):
if params.get_bool(param):
if param == "dp_device_reset_conf":
os.system("rm -fr /data/params/d/dp_*")
shutdown = True
params.put("LastManagerExitReason", f"{param} {datetime.datetime.now()}")
cloudlog.warning(f"Shutting down manager - {param} set")