tibluetooth: Restart on failure
It can happen that hciattach fails because of timeout. Reexecuting the service in this case makes sure that the bluetooth device is handled by bluetoothctl. BugzID: 65391
This commit is contained in:
parent
5bf5cd79a6
commit
7a107f2695
|
|
@ -12,5 +12,7 @@ ExecStart=/usr/bin/hciattach /dev/ttyS5 texas 3000000 flow
|
||||||
|
|
||||||
ExecStopPost=/bin/sh -c "/bin/echo 0 > /sys/class/gpio/gpio52/value"
|
ExecStopPost=/bin/sh -c "/bin/echo 0 > /sys/class/gpio/gpio52/value"
|
||||||
|
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
||||||
|
|
@ -12,5 +12,7 @@ ExecStart=/usr/bin/hciattach /dev/ttyS5 texas 3000000 flow
|
||||||
|
|
||||||
ExecStopPost=/bin/sh -c "/bin/echo 0 > /sys/class/gpio/gpio52/value"
|
ExecStopPost=/bin/sh -c "/bin/echo 0 > /sys/class/gpio/gpio52/value"
|
||||||
|
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
||||||
|
|
@ -13,5 +13,7 @@ ExecStart=/usr/bin/hciattach /dev/ttyS5 texas 3000000 flow
|
||||||
|
|
||||||
ExecStopPost=/bin/sh -c "/bin/echo 0 > /sys/class/gpio/gpio100/value"
|
ExecStopPost=/bin/sh -c "/bin/echo 0 > /sys/class/gpio/gpio100/value"
|
||||||
|
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
||||||
|
|
@ -12,5 +12,7 @@ ExecStart=/usr/bin/hciattach /dev/ttyS5 texas 3000000 flow
|
||||||
|
|
||||||
ExecStopPost=/bin/sh -c "/bin/echo 0 > /sys/class/gpio/gpio52/value"
|
ExecStopPost=/bin/sh -c "/bin/echo 0 > /sys/class/gpio/gpio52/value"
|
||||||
|
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue