service add
This commit is contained in:
parent
4d8bb42e10
commit
fd59c8294b
12
bt-unblock.service
Normal file
12
bt-unblock.service
Normal 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
12
qqqq
@ -23,7 +23,7 @@ sudo cp -r car_ui/* /opt/car_ui/
|
|||||||
sudo chown -R cheykrym:cheykrym /opt/car_ui
|
sudo chown -R cheykrym:cheykrym /opt/car_ui
|
||||||
/opt/car_ui/car_ui
|
/opt/car_ui/car_ui
|
||||||
|
|
||||||
|
# сервис
|
||||||
sudo cp car-ui.service /etc/systemd/system/car-ui.service
|
sudo cp car-ui.service /etc/systemd/system/car-ui.service
|
||||||
sudo systemctl daemon-reload
|
sudo systemctl daemon-reload
|
||||||
sudo systemctl start car-ui
|
sudo systemctl start car-ui
|
||||||
@ -32,10 +32,16 @@ sudo systemctl set-default multi-user.target
|
|||||||
sudo systemctl disable lightdm
|
sudo systemctl disable lightdm
|
||||||
sudo systemctl stop lightdm
|
sudo systemctl stop lightdm
|
||||||
|
|
||||||
|
# вкл
|
||||||
sudo systemctl start display-manager
|
sudo systemctl start display-manager
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sudo systemctl set-default graphical.target
|
sudo systemctl set-default graphical.target
|
||||||
sudo systemctl enable lightdm
|
sudo systemctl enable lightdm
|
||||||
sudo systemctl start 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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user