feat: Squash all core features into min

This commit is contained in:
Rick Lan
2026-01-23 11:48:04 +08:00
parent 6928314c89
commit 0076d30d62
68 changed files with 1196 additions and 141 deletions

View File

@@ -12,7 +12,7 @@ import openpilot.system.sentry as sentry
from openpilot.common.utils import atomic_write
from openpilot.common.params import Params, ParamKeyFlag
from openpilot.common.text_window import TextWindow
from openpilot.system.hardware import HARDWARE
from openpilot.system.hardware import HARDWARE, TICI
from openpilot.system.manager.helpers import unblock_stdout, write_onroad_params, save_bootlog
from openpilot.system.manager.process import ensure_running
from openpilot.system.manager.process_config import managed_processes
@@ -170,8 +170,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_dev_reset_conf"):
if params.get_bool(param):
if TICI and param == "dp_dev_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")
@@ -206,6 +208,9 @@ def main() -> None:
elif params.get_bool("DoShutdown"):
cloudlog.warning("shutdown")
HARDWARE.shutdown()
elif params.get_bool("dp_dev_reset_conf"):
cloudlog.warning("reboot")
HARDWARE.reboot()
if __name__ == "__main__":