service add

This commit is contained in:
Your Name 2026-01-08 04:21:46 +03:00
parent 4d8bb42e10
commit fd59c8294b
2 changed files with 21 additions and 3 deletions

12
bt-unblock.service Normal file
View File

@ -0,0 +1,12 @@
[Unit]
Description=Unblock Bluetooth RFKill
After=bluetooth.service
Before=car-ui.service
[Service]
Type=oneshot
ExecStart=/usr/sbin/rfkill unblock bluetooth
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target

12
qqqq
View File

@ -23,7 +23,7 @@ sudo cp -r car_ui/* /opt/car_ui/
sudo chown -R cheykrym:cheykrym /opt/car_ui
/opt/car_ui/car_ui
# сервис
sudo cp car-ui.service /etc/systemd/system/car-ui.service
sudo systemctl daemon-reload
sudo systemctl start car-ui
@ -32,10 +32,16 @@ sudo systemctl set-default multi-user.target
sudo systemctl disable lightdm
sudo systemctl stop lightdm
# вкл
sudo systemctl start display-manager
sudo systemctl set-default graphical.target
sudo systemctl enable lightdm
sudo systemctl start lightdm
# блютуз разблокировка
sudo cp bt-unblock.service /etc/systemd/system/bt-unblock.service
sudo systemctl daemon-reload
sudo systemctl enable bt-unblock.service
sudo systemctl start bt-unblock.service