21 lines
389 B
Bash
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
|