op: simplify service restart (#34551)

pull/34552/head
Adeeb Shihadeh 3 months ago committed by GitHub
parent 9ec54f59c6
commit 22591dc6f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 12
      tools/op.sh

@ -345,7 +345,7 @@ function op_switch() {
function op_start() {
if [[ -f "/AGNOS" ]]; then
op_before_cmd
op_run_command sudo systemctl start comma $@
op_run_command sudo systemctl restart comma $@
fi
}
@ -356,13 +356,6 @@ function op_stop() {
fi
}
function op_restart() {
if [[ -f "/AGNOS" ]]; then
op_before_cmd
op_run_command sudo systemctl restart comma $@
fi
}
function op_default() {
echo "An openpilot helper"
echo ""
@ -386,9 +379,8 @@ function op_default() {
echo -e " ${BOLD}build${NC} Run the openpilot build system in the current working directory"
echo -e " ${BOLD}install${NC} Install the 'op' tool system wide"
echo -e " ${BOLD}switch${NC} Switch to a different git branch with a clean slate (nukes any changes)"
echo -e " ${BOLD}start${NC} Starts openpilot"
echo -e " ${BOLD}start${NC} Starts (or restarts) openpilot"
echo -e " ${BOLD}stop${NC} Stops openpilot"
echo -e " ${BOLD}restart${NC} Restarts openpilot"
echo ""
echo -e "${BOLD}${UNDERLINE}Commands [Tooling]:${NC}"
echo -e " ${BOLD}juggle${NC} Run PlotJuggler"

Loading…
Cancel
Save