diff --git a/tools/op.sh b/tools/op.sh index 566a152bae..6ae59e6fa4 100755 --- a/tools/op.sh +++ b/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"