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:
Alexandre Bard 2020-08-06 23:09:57 +02:00
parent 5bf5cd79a6
commit 7a107f2695
4 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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