diff --git a/bt-unblock.service b/bt-unblock.service new file mode 100644 index 0000000..9667bf2 --- /dev/null +++ b/bt-unblock.service @@ -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 diff --git a/qqqq b/qqqq index 31b54be..fdebc19 100644 --- a/qqqq +++ b/qqqq @@ -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