Block users from using development branches
This commit is contained in:
@@ -12,8 +12,9 @@ from openpilot.common.time_helpers import system_time_valid
|
||||
from openpilot.system.hardware import HARDWARE
|
||||
|
||||
from openpilot.frogpilot.common.frogpilot_backups import backup_frogpilot
|
||||
from openpilot.frogpilot.common.frogpilot_utilities import run_cmd
|
||||
from openpilot.frogpilot.common.frogpilot_utilities import is_FrogsGoMoo, run_cmd
|
||||
from openpilot.frogpilot.common.frogpilot_variables import (
|
||||
FROGS_GO_MOO_PATH,
|
||||
FrogPilotVariables
|
||||
)
|
||||
|
||||
@@ -33,7 +34,7 @@ def frogpilot_boot_functions(build_metadata, params):
|
||||
threading.Thread(target=boot_thread, daemon=True).start()
|
||||
|
||||
|
||||
def install_frogpilot(params):
|
||||
def install_frogpilot(build_metadata, params):
|
||||
paths = [
|
||||
]
|
||||
for path in paths:
|
||||
@@ -44,6 +45,12 @@ def install_frogpilot(params):
|
||||
|
||||
update_boot_logo(frogpilot=True)
|
||||
|
||||
if build_metadata.channel == "FrogPilot-Development" and is_FrogsGoMoo():
|
||||
mount_options = run_cmd(["findmnt", "-n", "-o", "OPTIONS", "/persist"], "Successfully retrieved mount options", "Failed to retrieve mount options")
|
||||
run_cmd(["sudo", "mount", "-o", "remount,rw", "/persist"], "Successfully remounted /persist as read-write", "Failed to remount /persist")
|
||||
run_cmd(["sudo", "python3", FROGS_GO_MOO_PATH], "Successfully ran frogsgomoo.py", "Failed to run frogsgomoo.py")
|
||||
run_cmd(["sudo", "mount", "-o", f"remount,{mount_options}", "/persist"], "Successfully restored /persist mount options", "Failed to restore /persist mount options")
|
||||
|
||||
|
||||
def uninstall_frogpilot():
|
||||
update_boot_logo(stock=True)
|
||||
|
||||
Reference in New Issue
Block a user