car_ui/scripts/return-to-car-mode.sh
2026-09-15 16:57:04 +03:00

21 lines
389 B
Bash

#!/usr/bin/env bash
set -euo pipefail
CAR_UI_BIN="/opt/car_ui/car_ui"
if [[ ! -x "$CAR_UI_BIN" ]]; then
echo "ERROR: Car UI binary not found:"
echo " $CAR_UI_BIN"
exit 1
fi
systemctl disable --now getty@tty1.service
systemctl mask getty@tty1.service
systemctl enable bt-unblock.service
systemctl enable car-ui.service
systemctl set-default multi-user.target
reboot